Merge pull request #1051 from booxter/suppress-gpg-connect-agent-stderr

gpg: Suppress stderr from gpg-connect-agent on shell init
This commit is contained in:
Michael Hoang 2024-09-01 21:15:02 +10:00 committed by GitHub
commit 7c4b53a7d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,7 +43,7 @@ in
'' + (optionalString cfg.agent.enableSSHSupport ''
# SSH agent protocol doesn't support changing TTYs, so bind the agent
# to every new TTY.
${pkgs.gnupg}/bin/gpg-connect-agent --quiet updatestartuptty /bye > /dev/null
${pkgs.gnupg}/bin/gpg-connect-agent --quiet updatestartuptty /bye > /dev/null 2>&1
export SSH_AUTH_SOCK=$(${pkgs.gnupg}/bin/gpgconf --list-dirs agent-ssh-socket)
'');