From 382dad7c6d6936b1965aa1e8e6c1fa481824db05 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 4 Oct 2020 03:00:03 +0100 Subject: [PATCH] marukuru: add nix config to deployer container --- ops/nixos/marukuru/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ops/nixos/marukuru/default.nix b/ops/nixos/marukuru/default.nix index 04812bfa50..32763b0f93 100644 --- a/ops/nixos/marukuru/default.nix +++ b/ops/nixos/marukuru/default.nix @@ -160,6 +160,14 @@ in { containers.deployer = { config = { config, pkgs, ... }: { + nix = { + binaryCaches = lib.mkForce [ "https://cache.nixos.org/" "s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1" ]; + trustedBinaryCaches = lib.mkForce [ "https://cache.nixos.org/" "s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1" ]; + envVars = { + AWS_ACCESS_KEY_ID = "${depot.ops.secrets.nixCache.AWS_ACCESS_KEY_ID}"; + AWS_SECRET_ACCESS_KEY = "${depot.ops.secrets.nixCache.AWS_SECRET_ACCESS_KEY}"; + }; + }; environment.etc."secrets/gitlab-runner-registration" = { text = '' CI_SERVER_URL=https://hg.lukegb.com