Use official nix formatter

This commit is contained in:
Geoffrey Frogeye 2024-12-15 00:04:26 +01:00
parent a06fb16394
commit 9e0c1102a9
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
2 changed files with 3 additions and 2 deletions

View file

@ -122,6 +122,7 @@
}}/bin/rebuild ${self} "$@"''}"; }}/bin/rebuild ${self} "$@"''}";
}; };
}; };
formatter = pkgs.nixfmt-rfc-style;
} }
); );
}; };

View file

@ -22,7 +22,7 @@
# nix # nix
lix lix
nixpkgs-fmt nixfmt-rfc-style
# Always on (graphical) # Always on (graphical)
] ++ lib.optionals config.frogeye.desktop.xorg [ ] ++ lib.optionals config.frogeye.desktop.xorg [
@ -71,7 +71,7 @@
nil_ls = { nil_ls = {
enable = true; enable = true;
settings = { settings = {
formatting.command = [ "nixpkgs-fmt" ]; formatting.command = [ "nixfmt" ];
nix.flake = { nix.flake = {
autoArchive = true; autoArchive = true;
autoEvalInputs = true; autoEvalInputs = true;