shell.nix: replace Nix formatter with nixfmt

This commit is contained in:
Gabriel Arazas 2024-05-24 09:29:58 +08:00
parent 4c9852ece4
commit 509070cf78
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 3 additions and 2 deletions

View File

@ -13,6 +13,7 @@ pkgs.mkShell {
asciidoctor asciidoctor
disko disko
deploy-rs deploy-rs
nixos-anywhere
home-manager home-manager
git git
sops sops
@ -33,6 +34,6 @@ pkgs.mkShell {
treefmt # The universal formatter (if you configured it). treefmt # The universal formatter (if you configured it).
stylua # ...for Lua. stylua # ...for Lua.
black # ...for Python. black # ...for Python.
nixpkgs-fmt # ...for Nix. nixfmt # ...for Nix.
] ++ extraPackages; ] ++ extraPackages;
} }

View File

@ -8,7 +8,7 @@ command = "stylua"
includes = [ "*.lua" ] includes = [ "*.lua" ]
[formatter.nix] [formatter.nix]
command = "nixpkgs-fmt" command = "nixfmt"
includes = [ "*.nix" ] includes = [ "*.nix" ]
[formatter.python] [formatter.python]