From 134db5744be3a9fbf5eae0767b6d7f562e0b52fa Mon Sep 17 00:00:00 2001 From: Ananth Bhaskararaman Date: Sun, 11 Jan 2026 13:50:56 +0530 Subject: [PATCH] fix(home-manager): ensure system paths in LaunchAgent PATH on Darwin The LaunchAgent on macOS failed when no age plugins were configured because PATH was empty, causing sops-install-secrets to fail finding 'getconf' at /usr/bin/getconf. Fixes #890 --- modules/home-manager/sops.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/home-manager/sops.nix b/modules/home-manager/sops.nix index e340198..be11f69 100644 --- a/modules/home-manager/sops.nix +++ b/modules/home-manager/sops.nix @@ -365,7 +365,12 @@ in )) ]; - PATH = lib.makeBinPath cfg.age.plugins; + PATH = + let + pluginPaths = lib.makeBinPath cfg.age.plugins; + systemPaths = lib.optionalString pkgs.stdenv.isDarwin "/usr/bin:/bin:/usr/sbin:/sbin"; + in + lib.concatStringsSep ":" (lib.filter (p: p != "") [ pluginPaths systemPaths ]); QUBES_GPG_DOMAIN = lib.mkIf cfg.gnupg.qubes-split-gpg.enable ( lib.mkDefault cfg.gnupg.qubes-split-gpg.domain