From e043606b50526f4b9eb14d983f406acec9548962 Mon Sep 17 00:00:00 2001 From: Sander Date: Thu, 16 May 2024 17:55:14 +0400 Subject: [PATCH] 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. --- modules/services/cachix-agent.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";