-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
40 lines (32 loc) · 1.06 KB
/
flake.nix
File metadata and controls
40 lines (32 loc) · 1.06 KB
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
{
description = "GitOps deploy repo";
inputs = {
devenv-k8s.url = "github:LCOGT/devenv-k8s";
nixpkgs.follows = "devenv-k8s/nixpkgs";
flake-parts.follows = "devenv-k8s/flake-parts";
};
nixConfig = {
extra-substituters = [
"https://devenv.cachix.org"
"https://lco-public.cachix.org"
];
extra-trusted-public-keys = [
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
"lco-public.cachix.org-1:zSmLK7CkAehZ7QzTLZKt+5Y26Lr0w885GUB4GlT1SCg="
];
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.devenv-k8s.flakeModules.default
];
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
perSystem = { lib, config, ... }: {
# Enable these as you see fit
config.devenv.shells.default = {
pre-commit.hooks.kustomize-build-staging.enable = lib.mkForce true;
pre-commit.hooks.kustomize-build-prod.enable = lib.mkForce true;
};
};
};
}