flake/git-hooks: reuse devshell

This commit is contained in:
Felix Buehler 2024-07-28 19:46:00 +02:00
parent 3ed16c756f
commit 29c8aed76e

View file

@ -83,20 +83,14 @@
};
};
devShells.default = pkgs.mkShellNoCC {
nativeBuildInputs = [
devShells.default = pkgs.mkShell {
inputsFrom = [
config.pre-commit.devShell
];
nativeBuildInputs = with pkgs; [
inputs'.sops-nix.packages.sops-import-keys-hook
inputs'.disko.packages.disko
# formatter + linter
pkgs.deadnix
pkgs.nixpkgs-fmt
pkgs.shellcheck
pkgs.statix
pkgs.typos
];
shellHook = ''
${config.pre-commit.installationScript}
'';
};
};
# flake = {};