-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
47 lines (46 loc) · 1.14 KB
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
let
inputs = import ./lon.nix;
pkgs = import inputs.unstable { };
nixos-anywhere = pkgs.callPackage "${inputs.nixos-anywhere}/src/default.nix" { };
agenix = pkgs.callPackage "${inputs.agenix}/pkgs/agenix.nix" { };
bootstrap = pkgs.callPackage scripts/bootstrap-machine.nix { inherit nixos-anywhere; };
lon = pkgs.callPackage "${inputs.lon}/nix/packages/lon.nix" { };
pre-commit-hook =
(import (
pkgs.applyPatches {
name = "patched-git-hooks";
src = inputs.git-hooks;
}
)).run
{
src = ./.;
hooks = {
statix = {
enable = true;
settings.ignore = [
"**/lon.nix"
];
};
deadnix.enable = true;
rfc101 = {
enable = true;
name = "RFC-101 formatting";
entry = "${pkgs.lib.getExe pkgs.nixfmt-rfc-style}";
files = "\\.nix$";
};
commitizen.enable = true;
};
};
in
pkgs.mkShell {
nativeBuildInputs = [
pkgs.colmena
agenix
bootstrap
pkgs.statix
lon
];
shellHook = ''
${pre-commit-hook.shellHook}
'';
}