mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 01:44:40 +02:00
flake/git-hooks: reuse devshell
This commit is contained in:
parent
3ed16c756f
commit
29c8aed76e
1 changed files with 5 additions and 11 deletions
16
flake.nix
16
flake.nix
|
@ -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 = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue