1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

Merge pull request #675 from serokell/rvem/update-buildkite-module

buildkite-agent: fix launchd daemon environment
This commit is contained in:
Daiderd Jordan 2023-06-25 10:52:13 +02:00 committed by GitHub
commit 53c6748f98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.