flake/treefmt.nix
2024-09-22 04:55:17 +08:00

18 lines
342 B
Nix

{
projectRootFile = "flake.nix";
programs = {
deadnix.enable = true;
nixfmt.enable = true;
prettier.enable = true;
statix.enable = true;
terraform.enable = true;
};
settings.formatter.nixfmt.options = [ "--strict" ];
settings.formatter.prettier.excludes = [
"**/secrets.yaml"
"infra/data.json"
];
}