3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #189711 from SuperSandro2000/gnupg-remote-quiet

nixos/gnupg: void error messages when using nix remote builders
This commit is contained in:
Michele Guerini Rocco 2022-09-04 14:53:34 +02:00 committed by GitHub
commit 68065dc561
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -135,7 +135,7 @@ in
# The SSH agent protocol doesn't have support for changing TTYs; however we
# can simulate this with the `exec` feature of openssh (see ssh_config(5))
# that hooks a command to the shell currently running the ssh program.
Match host * exec "${cfg.package}/bin/gpg-connect-agent --quiet updatestartuptty /bye > /dev/null"
Match host * exec "${cfg.package}/bin/gpg-connect-agent --quiet updatestartuptty /bye >/dev/null 2>&1"
'';
environment.extraInit = mkIf cfg.agent.enableSSHSupport ''