programs.gnupg: use extraInit instead of interactiveShellInit

Otherwise some programmes cannot use the GPG agent, e.g. applications
started from dmenu.

Behaviour was changed in #26888, this reverts that part.
This commit is contained in:
Robin Gloster 2017-07-17 18:43:05 +02:00
parent b4ee24d5b1
commit b8d92a7840
No known key found for this signature in database
GPG key ID: 5E4C836C632C2882

View file

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