mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
gpg-agent: use gpgconf to launch gpg-agent on macOS
The '--supervised' option is deprecated and not supported. Instead, use gpgconf to launch gpg-agent which will use '--daemon' along with '--use-standard-socket' to use the canonical socket paths under $GNUPGHOME. Co-authored-by: Calum MacRae <hi@cmacr.ae>
This commit is contained in:
parent
cbaeb4e1e1
commit
c255e93957
2 changed files with 5 additions and 3 deletions
|
@ -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 = {
|
||||
|
|
|
@ -20,8 +20,9 @@
|
|||
<string>Background</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>@gpg@/bin/gpg-agent</string>
|
||||
<string>--supervised</string>
|
||||
<string>@gpg@/bin/gpgconf</string>
|
||||
<string>--launch</string>
|
||||
<string>gpg-agent</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<false/>
|
||||
|
|
Loading…
Reference in a new issue