summaryrefslogtreecommitdiff
path: root/modules/services
diff options
context:
space:
mode:
authorRoman Melnikov <roman.melnikov@serokell.io>2023-05-29 13:50:59 +0800
committerRoman Melnikov <roman.melnikov@serokell.io>2023-06-21 09:35:41 +0200
commitf253b41de83c9f34fba9eda66cc42b90e10937c7 (patch)
tree3cfba48185960e8a845ad482ac760795e9c84e73 /modules/services
parentb8c286c82c6b47826a6c0377e7017052ad91353c (diff)
buildkite-agent: fix launcd daemon environment
Add missing 'NIX_SSL_CERT_FILE'
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/buildkite-agents.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/services/buildkite-agents.nix b/modules/services/buildkite-agents.nix
index 7486161..dc7ef33 100644
--- a/modules/services/buildkite-agents.nix
+++ b/modules/services/buildkite-agents.nix
@@ -228,7 +228,8 @@ in
{ path = cfg.runtimePackages ++ [ cfg.package pkgs.coreutils pkgs.darwin.DarwinTools ];
environment = {
HOME = cfg.dataDir;
- }// (if config.nix.useDaemon then { NIX_REMOTE = "daemon"; } else {});
+ inherit (config.environment.variables) NIX_SSL_CERT_FILE;
+ } // (if config.nix.useDaemon then { NIX_REMOTE = "daemon"; } else {});
## NB: maximum care is taken so that secrets (ssh keys and the CI token)
## don't end up in the Nix store.