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 { devShells.${system}.default = pkgs.mkShell {
packages = [ packages = [
pkgs.sops 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;
} }
); );
} }

View file

@ -63,12 +63,16 @@
nix-index nix-index
; ;
inherit (nvim-flake.packages.${pkgs.system}) neovim; inherit (nvim-flake.packages.${pkgs.system}) neovim;
lint = pkgs.writeShellScriptBin "lint" ''
deadnix -e "$1"
statix fix "$1"
alejandra "$1"
'';
}; };
etc = { etc = {
"jdks/17".source = lib.getBin pkgs.openjdk17; "jdks/17".source = lib.getBin pkgs.openjdk17;
"jdks/8".source = lib.getBin pkgs.openjdk8; "jdks/8".source = lib.getBin pkgs.openjdk8;
}; };
shellAliases.lint = "deadnix -e && statix fix && alejandra ./";
}; };
services.udev.packages = [ services.udev.packages = [