updated lint command

This commit is contained in:
Gerg-L 2023-07-25 22:35:18 -04:00
parent a2c26daf4a
commit bcea731103
2 changed files with 11 additions and 2 deletions

View file

@ -74,6 +74,11 @@
devShells.${system}.default = pkgs.mkShell {
packages = [
pkgs.sops
(pkgs.writeShellScriptBin "lint" ''
deadnix -qe "$1"
statix fix -- "$1"
alejandra -q "$1"
'')
];
};

View file

@ -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 = [