initial flake with clan cli and formating

This commit is contained in:
2025-07-11 11:16:22 +07:00
parent d11b0316d2
commit 610952acae
5 changed files with 351 additions and 1 deletions

44
flake.nix Normal file
View File

@@ -0,0 +1,44 @@
{
description = "Clan flake for controlling NewEdge infrastructure.";
inputs = {
clan-core = {
url = "git+https://git.clan.lol/clan/clan-core";
inputs.flake-parts.follows = "flake-parts";
inputs.treefmt-nix.follows = "treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
devshell = {
url = "github:numtide/devshell";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-parts = {
inputs.nixpkgs-lib.follows = "nixpkgs";
url = "github:hercules-ci/flake-parts";
};
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
flake-parts,
...
}@inputs:
flake-parts.lib.mkFlake { inherit inputs; } (
{ ... }:
{
systems = [
"x86_64-linux"
];
imports = [
inputs.clan-core.flakeModules.default
inputs.devshell.flakeModule
./fmt.nix
./shell.nix
];
}
);
}