Skip to content

Commit

Permalink
cachix-agent: fix crash calling security
Browse files Browse the repository at this point in the history
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 LnL7#924.
  • Loading branch information
sandydoo committed May 16, 2024
1 parent de8b0d6 commit 8286480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/services/cachix-agent.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ in {
exec ${cfg.package}/bin/cachix deploy agent ${cfg.name}
'';

path = [ config.nix.package pkgs.coreutils ];
path = [ config.nix.package config.environment.systemPath ];

environment = {
NIX_SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
Expand Down

0 comments on commit 8286480

Please sign in to comment.