Files
nix-stuff/treefmt.nix
2025-04-09 17:48:40 -07:00

42 lines
781 B
Nix

{ ... }:
let
shellFiles = [
"*.sh"
"dcd"
"dliam"
"dmmm"
"dnod"
"dtrip"
"sops"
"tliam"
];
in
{
projectRootFile = "flake.nix";
programs.nixfmt.enable = true;
programs.nixfmt.strict = true;
programs.shellcheck.enable = true;
programs.shellcheck.includes = shellFiles;
programs.shfmt.enable = true;
programs.shfmt.includes = shellFiles;
programs.deno.enable = true;
programs.stylua.enable = true;
programs.black.enable = true;
settings.excludes = [
"*.pdf"
"*.patch"
"*.units"
".gitignore"
"flake.lock"
"mmm/firmware/all_firmware.tar.gz"
"mmm/firmware/kernelcache.release.mac13g"
"secrets/radicle-private.key"
"tests/triple-dezert/test_key"
"tests/triple-dezert/test_key.pub"
];
}