Skip to content

Commit b4823cd

Browse files
committed
fix(nix): replace deprecated nixfmt-rfc-style with nixfmt
nixfmt-rfc-style is now the same as pkgs.nixfmt and should be used instead. This removes the explicit package override in treefmt and updates devShells to use the standard nixfmt package. - Remove nixfmt.package override in treefmt config (defaults to nixfmt) - Replace nixfmt-rfc-style with nixfmt in devShells.default - Update nix-workflow.md documentation to reflect the change
1 parent 893ed42 commit b4823cd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.claude/rules/nix-workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ devShells.default = pkgs.mkShellNoCC {
1616
uv
1717
ty
1818
just
19-
nixfmt-rfc-style
19+
nixfmt
2020
2121
# your new tool here
2222
new-tool

flake.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
projectRootFile = "flake.nix";
4040
programs = {
4141
nixfmt.enable = true;
42-
nixfmt.package = pkgs.nixfmt-rfc-style;
4342
ruff-check.enable = true;
4443
ruff-format.enable = true;
4544
};
@@ -94,7 +93,7 @@
9493
uv
9594
ty
9695
just
97-
nixfmt-rfc-style
96+
nixfmt
9897

9998
# security
10099
gitleaks

0 commit comments

Comments
 (0)