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

cachix-agent: fix crash calling security

One of cachix-agent's dependencies, `hs-certificate`, makes calls to
`security`. This lives in `/usr/bin`, which isn't available from
launchd. This commit makes the system paths available to cachix-agent.

Fixes #924.
This commit is contained in:
Sander 2024-05-16 17:55:14 +04:00
parent de8b0d60d6
commit e043606b50
No known key found for this signature in database
GPG key ID: D1A763BC84F34603

View file

@ -58,7 +58,7 @@ in {
exec ${cfg.package}/bin/cachix deploy agent ${cfg.name} exec ${cfg.package}/bin/cachix deploy agent ${cfg.name}
''; '';
path = [ config.nix.package pkgs.coreutils ]; path = [ config.nix.package pkgs.coreutils config.environment.systemPath ];
environment = { environment = {
NIX_SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"; NIX_SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";