1
0
Fork 0
nix-configuration/treefmt.nix

24 lines
420 B
Nix
Raw Permalink Normal View History

2024-12-06 18:04:47 +00:00
# Configure formatter for .nix and other repo files
{ pkgs, ... }:
{
projectRootFile = "flake.nix";
programs = {
beautysh.enable = true;
deadnix = {
enable = true;
no-lambda-pattern-names = true;
};
2024-12-06 18:04:47 +00:00
nixfmt = {
enable = true;
package = pkgs.nixfmt-rfc-style;
};
prettier.enable = true;
yamlfmt.enable = true;
};
settings = {
on-unmatched = "info";
};
2024-12-06 18:04:47 +00:00
}