From b4823cd2489ed5337db4b26db57af72b3e6eae8d Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Thu, 22 Jan 2026 10:51:07 +0000 Subject: [PATCH] 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 --- .claude/rules/nix-workflow.md | 2 +- flake.nix | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.claude/rules/nix-workflow.md b/.claude/rules/nix-workflow.md index c9234ac..a4fdfd8 100644 --- a/.claude/rules/nix-workflow.md +++ b/.claude/rules/nix-workflow.md @@ -16,7 +16,7 @@ devShells.default = pkgs.mkShellNoCC { uv ty just - nixfmt-rfc-style + nixfmt # your new tool here new-tool diff --git a/flake.nix b/flake.nix index f5faee7..4819ad9 100644 --- a/flake.nix +++ b/flake.nix @@ -39,7 +39,6 @@ projectRootFile = "flake.nix"; programs = { nixfmt.enable = true; - nixfmt.package = pkgs.nixfmt-rfc-style; ruff-check.enable = true; ruff-format.enable = true; }; @@ -94,7 +93,7 @@ uv ty just - nixfmt-rfc-style + nixfmt # security gitleaks