Skip to content

Commit

Permalink
configure cache in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jashan-lco committed Dec 22, 2023
1 parent e5a8acf commit d295d46
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions templates/app-repo/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@
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 = [
Expand Down
12 changes: 12 additions & 0 deletions templates/deploy-repo/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@
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 = [
Expand Down

0 comments on commit d295d46

Please sign in to comment.