Skip to content

Commit

Permalink
Merge pull request #105 from akirak/use-nixfmt
Browse files Browse the repository at this point in the history
Use nixfmt as the default formatter in templates
  • Loading branch information
akirak authored Oct 27, 2024
2 parents e446270 + 539fb84 commit 7cb2509
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pre-commit/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
pre-commit-check = pre-commit-hooks.lib.${system}.run {
src = ./.;
hooks = {
alejandra.enable = true;
nixfmt.enable = true;
# statix.enable = false;
};
};
Expand Down
2 changes: 1 addition & 1 deletion rust/treefmt.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
projectRootFile = "treefmt.nix";

programs.alejandra.enable = true;
programs.nixfmt.enable = true;
programs.rustfmt.enable = true;
}

0 comments on commit 7cb2509

Please sign in to comment.