mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
updated lint command
This commit is contained in:
parent
a2c26daf4a
commit
bcea731103
2 changed files with 11 additions and 2 deletions
|
|
@ -74,6 +74,11 @@
|
|||
devShells.${system}.default = pkgs.mkShell {
|
||||
packages = [
|
||||
pkgs.sops
|
||||
(pkgs.writeShellScriptBin "lint" ''
|
||||
deadnix -qe "$1"
|
||||
statix fix -- "$1"
|
||||
alejandra -q "$1"
|
||||
'')
|
||||
];
|
||||
};
|
||||
|
||||
|
|
@ -87,7 +92,7 @@
|
|||
];
|
||||
};
|
||||
}
|
||||
// lib.mkPackages ./packages pkgs ;
|
||||
// lib.mkPackages ./packages pkgs;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,12 +63,16 @@
|
|||
nix-index
|
||||
;
|
||||
inherit (nvim-flake.packages.${pkgs.system}) neovim;
|
||||
lint = pkgs.writeShellScriptBin "lint" ''
|
||||
deadnix -e "$1"
|
||||
statix fix "$1"
|
||||
alejandra "$1"
|
||||
'';
|
||||
};
|
||||
etc = {
|
||||
"jdks/17".source = lib.getBin pkgs.openjdk17;
|
||||
"jdks/8".source = lib.getBin pkgs.openjdk8;
|
||||
};
|
||||
shellAliases.lint = "deadnix -e && statix fix && alejandra ./";
|
||||
};
|
||||
|
||||
services.udev.packages = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue