sops-nix/formatter.nix
2024-11-24 15:39:10 +01:00

30 lines
546 B
Nix

{ pkgs, inputs, ... }:
inputs.treefmt-nix.lib.evalModule pkgs {
projectRootFile = ".git/config";
programs = {
gofumpt.enable = true;
nixfmt.enable = true;
deadnix.enable = true;
deno.enable = true;
shellcheck.enable = true;
};
settings = {
global.excludes = [
"./pkgs/sops-install-secrets/test-assets/*"
"*.narHash"
# unsupported extensions
"*.{asc,pub,gpg}"
"*/secrets.{bin,json,ini,yaml}"
];
formatter = {
deadnix = {
priority = 1;
};
};
};
}