gnupg: Fix, set current tty in interactive shell

GPG_TTY was not being set to the current tty, breaking pinentry-tty/pinentry-curses.
This commit is contained in:
Heitham Omar 2018-10-21 10:19:04 +01:00
parent 7a10601dc4
commit 433ea7bf3a

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)