3
0
Fork 0
forked from mirrors/nixpkgs

gnupg agent module: Only set tty for interactive shells

This commit is contained in:
Daniel Fullmer 2017-06-26 19:33:57 -04:00 committed by Franz Pletz
parent 38e971d2e1
commit 627260ddbf

View file

@ -77,7 +77,7 @@ in
systemd.packages = [ pkgs.gnupg ]; systemd.packages = [ pkgs.gnupg ];
environment.extraInit = '' environment.interactiveShellInit = ''
# Bind gpg-agent to this TTY if gpg commands are used. # Bind gpg-agent to this TTY if gpg commands are used.
export GPG_TTY=$(tty) export GPG_TTY=$(tty)