From d295d462eb0606d3ac5ba0ed0fd9886cc174449d Mon Sep 17 00:00:00 2001 From: Jashandeep Sohi Date: Thu, 21 Dec 2023 20:33:28 -0800 Subject: [PATCH] configure cache in templates --- templates/app-repo/flake.nix | 12 ++++++++++++ templates/deploy-repo/flake.nix | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/templates/app-repo/flake.nix b/templates/app-repo/flake.nix index 03ec02e..c195f98 100644 --- a/templates/app-repo/flake.nix +++ b/templates/app-repo/flake.nix @@ -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 = [ diff --git a/templates/deploy-repo/flake.nix b/templates/deploy-repo/flake.nix index 9630393..bcdfda5 100644 --- a/templates/deploy-repo/flake.nix +++ b/templates/deploy-repo/flake.nix @@ -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 = [