mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
nixpkgs-fmt -> nixfmt-rfc-style
This commit is contained in:
parent
3d3d29a83c
commit
a201733f96
4 changed files with 3 additions and 6 deletions
|
@ -30,9 +30,6 @@
|
|||
|
||||
in
|
||||
{
|
||||
formatter = forAllSystems (system:
|
||||
nixpkgs.legacyPackages.${system}.nixpkgs-fmt);
|
||||
|
||||
lib = {
|
||||
base64 = import lib/base64.nix;
|
||||
gen-ssh-config = import lib/gen-ssh-config.nix lib;
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
lm_sensors
|
||||
ncdu
|
||||
nix-diff
|
||||
nixfmt-rfc-style
|
||||
nix-index
|
||||
nix-prefetch-github
|
||||
nixpkgs-fmt
|
||||
nodejs
|
||||
openssl
|
||||
parted
|
||||
|
|
|
@ -58,7 +58,7 @@ in
|
|||
{
|
||||
name = "nix";
|
||||
auto-format = true;
|
||||
formatter.command = "nixpkgs-fmt";
|
||||
formatter = { command = "nixfmt"; args = [ "--verify" ]; };
|
||||
}
|
||||
{
|
||||
name = "python";
|
||||
|
|
|
@ -56,7 +56,7 @@ lspconfig.nil_ls.setup({
|
|||
settings = {
|
||||
['nil'] = {
|
||||
formatting = {
|
||||
command = { "nixpkgs-fmt" },
|
||||
command = { "nixfmt", "--verify" },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue