about summary refs log tree commit diff
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2016-08-29 01:52:39 +0200
committerProfpatsch <mail@profpatsch.de>2016-08-29 01:52:39 +0200
commitfe06352460325d47e14cde025abef81ef908bbec (patch)
treef96eaeb3511738cd25122eff93a2caf1b061c357
parent76fa0340633e18b321fbd47ed5af10c0905852ff (diff)
machines/katara: enable vuizvui gpg-agent
-rw-r--r--machines/profpatsch/katara.nix21
1 files changed, 10 insertions, 11 deletions
diff --git a/machines/profpatsch/katara.nix b/machines/profpatsch/katara.nix
index c4db6458..fb3c4bc3 100644
--- a/machines/profpatsch/katara.nix
+++ b/machines/profpatsch/katara.nix
@@ -218,10 +218,11 @@ in {
       synaptics.enable = true;
       synaptics.minSpeed = "0.5";
       synaptics.accelFactor = "0.01";
+
+
       videoDrivers = [ "intel" ];
 
       # otherwise xterm is enabled, creating an xterm that spawns the window manager.
-      # TODO: Try to fix (annoying for new users)
       desktopManager.xterm.enable = false;
 
       # TODO: include taffybar
@@ -294,16 +295,14 @@ in {
     ###########
     # Programs
 
-      # gpg-agent; TODO: move to module
-    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!"
-      '';
+    vuizvui.programs.gnupg = {
+      enable = true;
+      agent = {
+        enable = true;
+        sshSupport = true;
+      };
+    };
+
 
     # TODO: base config?
     vuizvui.programs.fish.fasd.enable = true;