We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e743a6 commit 42fbe6aCopy full SHA for 42fbe6a
modules/hooks.nix
@@ -2894,6 +2894,13 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.ormol
2894
builtins.toString script;
2895
files = "\\.nix$";
2896
};
2897
+ nix-fmt =
2898
+ {
2899
+ name = "nix-fmt";
2900
+ description = "Format Nix files using the formatter specified in your flake.";
2901
+ package = tools.nix;
2902
+ entry = "${hooks.nix.package}/bin/nix fmt";
2903
+ };
2904
# nixfmt was renamed to nixfmt-classic.
2905
# The hook has been deprecated to free up the name for when the new RFC-style nixfmt becomes stable.
2906
nixfmt = nixfmt-classic;
nix/tools.nix
@@ -134,6 +134,7 @@ in
134
mdl
135
mdsh
136
nil
137
+ nix
138
nixpkgs-fmt
139
ormolu
140
pre-commit-hook-ensure-sops
0 commit comments