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
|
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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -56,7 +56,7 @@ lspconfig.nil_ls.setup({
|
||||||
settings = {
|
settings = {
|
||||||
['nil'] = {
|
['nil'] = {
|
||||||
formatting = {
|
formatting = {
|
||||||
command = { "nixpkgs-fmt" },
|
command = { "nixfmt", "--verify" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue