From 17e11a17a4b8635b88648fdcc6e3b0446f7cc43f Mon Sep 17 00:00:00 2001 From: Hakula Chen Date: Wed, 19 Aug 2026 15:48:57 +0800 Subject: [PATCH] chore(flake): format through nixfmt-tree instead of nixfmt nixfmt 1.4.0 deprecates bare invocation and passing a directory, so both `nix fmt` and `nix fmt .` now warn or fail. The replacement nixfmt points at is a treefmt wrapper, which nixpkgs ships as nixfmt-tree. nixfmt is still the formatter underneath, so nothing gets reformatted. --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index ec466d80..61ca2ebf 100644 --- a/flake.nix +++ b/flake.nix @@ -187,7 +187,7 @@ pre-commit = preCommitCheck; }; - formatter = pkgs.nixfmt; + formatter = pkgs.nixfmt-tree; } ); }