nixpkgs-fmt -> nixfmt-rfc-style

This commit is contained in:
Sean Buckley 2024-11-07 22:51:20 -05:00
parent 3d3d29a83c
commit a201733f96
4 changed files with 3 additions and 6 deletions

View file

@ -30,9 +30,6 @@
in in
{ {
formatter = forAllSystems (system:
nixpkgs.legacyPackages.${system}.nixpkgs-fmt);
lib = { lib = {
base64 = import lib/base64.nix; base64 = import lib/base64.nix;
gen-ssh-config = import lib/gen-ssh-config.nix lib; gen-ssh-config = import lib/gen-ssh-config.nix lib;

View file

@ -18,9 +18,9 @@
lm_sensors lm_sensors
ncdu ncdu
nix-diff nix-diff
nixfmt-rfc-style
nix-index nix-index
nix-prefetch-github nix-prefetch-github
nixpkgs-fmt
nodejs nodejs
openssl openssl
parted parted

View file

@ -58,7 +58,7 @@ in
{ {
name = "nix"; name = "nix";
auto-format = true; auto-format = true;
formatter.command = "nixpkgs-fmt"; formatter = { command = "nixfmt"; args = [ "--verify" ]; };
} }
{ {
name = "python"; name = "python";

View file

@ -56,7 +56,7 @@ lspconfig.nil_ls.setup({
settings = { settings = {
['nil'] = { ['nil'] = {
formatting = { formatting = {
command = { "nixpkgs-fmt" }, command = { "nixfmt", "--verify" },
}, },
}, },
}, },