mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-02-22 21:05:44 +08:00
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
This commit is contained in:
parent
1e89149dcf
commit
134db5744b
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue