about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2016-04-03 13:00:28 +0200
committerProfpatsch <mail@profpatsch.de>2016-04-03 13:08:53 +0200
commit8d0220a7c81a62d87187608e6064a3f37356116d (patch)
treef851bd64c78b7fc511bbf758e249b851f1614034 /machines
parent5f6b34802b7b3c7495fc50c868252a8fc27bcdfb (diff)
machines/katara: fix gpg-agent
Diffstat (limited to 'machines')
-rw-r--r--machines/profpatsch/katara.nix18
1 files changed, 13 insertions, 5 deletions
diff --git a/machines/profpatsch/katara.nix b/machines/profpatsch/katara.nix
index 8c864465..c452d999 100644
--- a/machines/profpatsch/katara.nix
+++ b/machines/profpatsch/katara.nix
@@ -93,7 +93,7 @@ in {
       xPkgs = [
         dmenu             # simple UI menu builder
         dunst             # notification daemon (implements libnotify)
-        i3lock            # lock screen
+        alock             # lock screen
         libnotify         # notification library
         lxappearance      # GTK theme chooser
         myPkgs.taffybar   # status bar
@@ -256,6 +256,9 @@ in {
             #TODO add as nixpkg
             export PATH+=":$HOME/scripts" #add utility scripts
             export EDITOR=emacsclient
+
+            eval $(gpg-agent --daemon --enable-ssh-support)
+
             xset r rate 250 35
             set-background &
             # TODO xbindkeys user service file
@@ -265,8 +268,6 @@ in {
             '';
       };
 
-      startGnuPGAgent = true;
-
     };
 
     fonts.fontconfig = {
@@ -322,11 +323,18 @@ in {
     ###########
     # Programs
 
-    # see gpgAgent
+    # use gpg-agent
     programs.ssh.startAgent = false;
 
     # friendly user shell
-    programs.fish.enable = true;
+    programs.fish = {
+      enable = true;
+      # gpg-agent; TODO: move to module
+      shellInit = ''
+        set -x GPG_TTY (tty)
+      '';
+    };
+
 
     vuizvui.user.profpatsch.programs.scanning.enable = true;