DEVELOPMENT ENVIRONMENT

~liljamo/nix-arta

ref: 71e79912647bf8c5d0419518b2d0fc284ddecffd nix-arta/modules/flake/pre-commit.nix -rw-r--r-- 471 bytes
71e79912Jonni Liljamo flake: update lanzaboote to 1.0.0 15 days ago
                                                                                
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
{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;
    };
  };
}