mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
gpg-agent: avoid console output when using ssh
Without `--quiet` gpg-connect-agent sometimes prints ``` gpg-connect-agent: connection to the agent is in restricted mode ```
This commit is contained in:
committed by
Robert Helgesson
parent
d6b0c05457
commit
1e8c62c651
@@ -20,7 +20,7 @@ let
|
||||
homedir = config.programs.gpg.homedir;
|
||||
|
||||
gpgSshSupportStr = ''
|
||||
${gpgPkg}/bin/gpg-connect-agent updatestartuptty /bye > /dev/null
|
||||
${gpgPkg}/bin/gpg-connect-agent --quiet updatestartuptty /bye > /dev/null
|
||||
'';
|
||||
|
||||
gpgInitStr =
|
||||
@@ -47,7 +47,7 @@ let
|
||||
$env.GPG_TTY = (tty)
|
||||
''
|
||||
+ optionalString cfg.enableSshSupport ''
|
||||
${gpgPkg}/bin/gpg-connect-agent updatestartuptty /bye | ignore
|
||||
${gpgPkg}/bin/gpg-connect-agent --quiet updatestartuptty /bye | ignore
|
||||
|
||||
$env.SSH_AUTH_SOCK = ($env.SSH_AUTH_SOCK? | default (${gpgPkg}/bin/gpgconf --list-dirs agent-ssh-socket))
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user