Skip to content

Commit 9508429

Browse files
committed
chore: use pre-commit treefmt integration
1 parent 442a4b3 commit 9508429

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

modules/formatting.nix

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
inputs.treefmt-nix.flakeModule
55
];
66
perSystem = {
7-
pre-commit.settings.hooks.nix-fmt = {
8-
enable = true;
9-
entry = "nix fmt -- --fail-on-change";
10-
};
7+
pre-commit.settings.hooks.treefmt.enable = true;
118

129
treefmt = {
1310
projectRootFile = "flake.nix";

0 commit comments

Comments
 (0)