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

33
fmt.nix Normal file
View File

@@ -0,0 +1,33 @@
{ inputs, ... }:
{
imports = [ inputs.treefmt-nix.flakeModule ];
perSystem =
{ ... }:
{
treefmt = {
projectRootFile = "flake.nix";
programs = {
nixfmt.enable = true;
prettier.enable = true;
yamlfmt.enable = true;
shfmt.enable = true;
};
settings = {
on-unmatched = "fatal";
global.excludes = [
"sops/*"
"vars/*"
"*/.gitignore"
"LICENSE"
"*.tfvars.sops.json"
"*nixos-vars.json"
"secrets.yaml"
"facter.json"
"secrets.auto.tfvars.sops.json"
];
};
};
};
}