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
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;
}

View File

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