mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-30 06:01:03 +01: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:
parent
d6b0c05457
commit
1e8c62c651
1 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ let
|
||||||
homedir = config.programs.gpg.homedir;
|
homedir = config.programs.gpg.homedir;
|
||||||
|
|
||||||
gpgSshSupportStr = ''
|
gpgSshSupportStr = ''
|
||||||
${gpgPkg}/bin/gpg-connect-agent updatestartuptty /bye > /dev/null
|
${gpgPkg}/bin/gpg-connect-agent --quiet updatestartuptty /bye > /dev/null
|
||||||
'';
|
'';
|
||||||
|
|
||||||
gpgInitStr =
|
gpgInitStr =
|
||||||
|
|
@ -47,7 +47,7 @@ let
|
||||||
$env.GPG_TTY = (tty)
|
$env.GPG_TTY = (tty)
|
||||||
''
|
''
|
||||||
+ optionalString cfg.enableSshSupport ''
|
+ 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))
|
$env.SSH_AUTH_SOCK = ($env.SSH_AUTH_SOCK? | default (${gpgPkg}/bin/gpgconf --list-dirs agent-ssh-socket))
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue