gnupg agent module: Only set tty for interactive shells
This commit is contained in:
parent
38e971d2e1
commit
627260ddbf
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user