gnupg agent module: Only set tty for interactive shells

This commit is contained in:
Daniel Fullmer
2017-07-14 00:22:20 +02:00
committed by Franz Pletz
parent 38e971d2e1
commit 627260ddbf
+1 -1
View File
@@ -77,7 +77,7 @@ in
systemd.packages = [ pkgs.gnupg ];
environment.extraInit = ''
environment.interactiveShellInit = ''
# Bind gpg-agent to this TTY if gpg commands are used.
export GPG_TTY=$(tty)