From 509070cf78ec3e50ea5256b2658c0be9880a062f Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 24 May 2024 09:29:58 +0800 Subject: [PATCH] shell.nix: replace Nix formatter with nixfmt --- shell.nix | 3 ++- treefmt.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/shell.nix b/shell.nix index f76747bf..eeb5065a 100644 --- a/shell.nix +++ b/shell.nix @@ -13,6 +13,7 @@ pkgs.mkShell { asciidoctor disko deploy-rs + nixos-anywhere home-manager git sops @@ -33,6 +34,6 @@ pkgs.mkShell { treefmt # The universal formatter (if you configured it). stylua # ...for Lua. black # ...for Python. - nixpkgs-fmt # ...for Nix. + nixfmt # ...for Nix. ] ++ extraPackages; } diff --git a/treefmt.toml b/treefmt.toml index 639a5837..aec83ef1 100644 --- a/treefmt.toml +++ b/treefmt.toml @@ -8,7 +8,7 @@ command = "stylua" includes = [ "*.lua" ] [formatter.nix] -command = "nixpkgs-fmt" +command = "nixfmt" includes = [ "*.nix" ] [formatter.python]