sops-nix/formatter.nix
Jörg Thalheim 5d6bbabd23 add treefmt
2024-11-24 15:39:10 +01:00

27 lines
488 B
Nix

{ pkgs, inputs, ... }:
inputs.treefmt-nix.lib.evalModule pkgs {
projectRootFile = ".git/config";
programs = {
nixfmt.enable = true;
deadnix.enable = true;
deno.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;
};
};
};
}