Merge pull request #891 from ananthb/fix/darwin-launchagent-path
Some checks are pending
Test / tests (push) Waiting to run

fix(home-manager): ensure system paths in LaunchAgent PATH on Darwin
This commit is contained in:
Jörg Thalheim 2026-02-03 10:18:38 +01:00 committed by GitHub
commit f990b0a334
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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