diff --git a/modules/services/gpg-agent.nix b/modules/services/gpg-agent.nix index 988c009a1..d4b0b8ff0 100644 --- a/modules/services/gpg-agent.nix +++ b/modules/services/gpg-agent.nix @@ -358,7 +358,8 @@ in { enable = true; config = { # macOS doesn't like the "--supervised" option - ProgramArguments = [ "${gpgPkg}/bin/gpgconf" "--launch" "gpg-agent" ] + ProgramArguments = + [ "${gpgPkg}/bin/gpgconf" "--launch" "gpg-agent" ] ++ optionals cfg.verbose [ "--verbose" ]; EnvironmentVariables = { GNUPGHOME = homedir; }; KeepAlive = { diff --git a/tests/modules/services/gpg-agent/expected-agent.plist b/tests/modules/services/gpg-agent/expected-agent.plist index 2a1298d7d..9132c0a45 100644 --- a/tests/modules/services/gpg-agent/expected-agent.plist +++ b/tests/modules/services/gpg-agent/expected-agent.plist @@ -20,8 +20,9 @@ Background ProgramArguments - @gpg@/bin/gpg-agent - --supervised + @gpg@/bin/gpgconf + --launch + gpg-agent RunAtLoad