summaryrefslogtreecommitdiff
path: root/modules/services
diff options
context:
space:
mode:
authorSander <hey@sandydoo.me>2024-05-16 17:55:14 +0400
committerSander <hey@sandydoo.me>2024-05-16 18:04:33 +0400
commite043606b50526f4b9eb14d983f406acec9548962 (patch)
tree591b59570b56df81c409ada7add67572bd66c0ed /modules/services
parentde8b0d60d6fd34f35abffc46adc94ebaa6996ce2 (diff)
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.
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/cachix-agent.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/services/cachix-agent.nix b/modules/services/cachix-agent.nix
index 0095d65..d9e4a90 100644
--- a/modules/services/cachix-agent.nix
+++ b/modules/services/cachix-agent.nix
@@ -58,7 +58,7 @@ in {
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 = {
NIX_SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";