diff options
Diffstat (limited to 'machines/profpatsch/katara.nix')
-rw-r--r-- | machines/profpatsch/katara.nix | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/machines/profpatsch/katara.nix b/machines/profpatsch/katara.nix index 668b9cb0..80a9dec0 100644 --- a/machines/profpatsch/katara.nix +++ b/machines/profpatsch/katara.nix @@ -241,10 +241,6 @@ in { export PATH+=":$HOME/.bin" #add (temporary) executables export EDITOR=emacsclient - ${gnupg}/bin/gpg-connect-agent /bye - unset SSH_AGENT_PID - export SSH_AUTH_SOCK="''${HOME}/.gnupg/S.gpg-agent.ssh" - ${xorg.xset}/bin/xset r rate 250 35 set-background & @@ -292,8 +288,14 @@ in { # Programs # gpg-agent; TODO: move to module - programs.fish.shellInit = '' - set -x GPG_TTY (tty) + programs.fish.interactiveShellInit = '' + set -l ssh_keys (find ${config.users.users.philip.home}/.ssh/ -name "*rsa*" | grep -v ".pub") + for l in (${lib.getBin pkgs.keychain}/bin/keychain \ + --eval --agents ssh $ssh_keys 2>/dev/null | \ + sed 's/^\(.*\)=\(.*\); export.*$/set \1 \2/') + eval $l + end; \ + and test -S $SSH_AUTH_SOCK; or echo "ssh agent (keychain) init failed!" ''; # TODO: base config? |