initial flake with clan cli and formating

This commit is contained in:
kurogeek committed 2025-07-11 11:16:22 +07:00
1 parent d11b0316d2
commit 610952acae
5 files changed
+351 -1

No files matched your search

+33
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"
];
};
};
};
}