1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

fix: console output when using ssh

I'm getting:

```
gpg-connect-agent: connection to the agent is in restricted mode
```

which I tracked to this invocation. Adding `--quiet` fixes it, and is probably a good idea.
This commit is contained in:
Dawid Ciężarkiewicz 2024-07-06 21:17:47 -07:00 committed by GitHub
parent 10486e6b31
commit ab1922aea2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,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 = ''
@ -25,7 +25,7 @@ let
gpgNushellInitStr = ''
$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))
'';