{inputs, ...}: {
perSystem = {
pkgs,
system,
...
}: rec {
checks.pre-commit-check = inputs.git-hooks.lib.${system}.run {
src = ./.;
hooks = {
alejandra = {
enable = true;
};
};
};
devShells.default = pkgs.mkShell {
inherit (checks.pre-commit-check) shellHook;
buildInputs = with pkgs;
[
sops
]
++ checks.pre-commit-check.enabledPackages;
};
};
}