about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2016-05-03 00:56:11 +0200
committerProfpatsch <mail@profpatsch.de>2016-05-03 00:56:11 +0200
commitbdb9fab33884733d18765741db8141d7e166ae4b (patch)
tree9fb186d43e8ff03e83481aaa8ad95e3e67f9296c /machines
parent3ddd93b6292671b1d5bf7c6365fcaddd51f510c7 (diff)
machines/katara: fix gpg-agent for the user
Commit I forgot; there was a change in the gpg-agent behavior and this
sets it up correctly again.
Diffstat (limited to 'machines')
-rw-r--r--machines/profpatsch/katara.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/machines/profpatsch/katara.nix b/machines/profpatsch/katara.nix
index 2626fea4..cc291746 100644
--- a/machines/profpatsch/katara.nix
+++ b/machines/profpatsch/katara.nix
@@ -282,7 +282,9 @@ in {
             export PATH+=":$HOME/.bin" #add (temporary) executables
             export EDITOR=emacsclient
 
-            eval $(gpg-agent --daemon --enable-ssh-support)
+            gpg-connect-agent /bye
+            unset SSH_AGENT_PID
+            export SSH_AUTH_SOCK="''${HOME}/.gnupg/S.gpg-agent.ssh"
 
             xset r rate 250 35