all repos — nixfiles @ b1f3fc59230b32a44951efcba0bb08ca82311044

System and user configuration, managed by nix and home-manager

user-interface: use keyring-based ssh agent
Alan Pearce alan@alanpearce.eu
Fri, 18 Oct 2019 12:53:04 +0200
commit

b1f3fc59230b32a44951efcba0bb08ca82311044

parent

fb425ca063349e224b3561c20408a90dd8f842e4

1 files changed, 6 insertions(+), 1 deletions(-)

jump to
M system/settings/user-interface.nixsystem/settings/user-interface.nix
@@ -70,7 +70,8 @@ night = 3600;     };
   };
 
-  programs.ssh.startAgent = true;
+  # use gnome-keyring
+  programs.ssh.startAgent = false;
 
   programs.dconf.enable = true;
   programs.seahorse.enable = true;
@@ -78,6 +79,10 @@ services.gnome3 = {     gnome-keyring.enable = true;
     at-spi2-core.enable = true;
   };
+  services.xserver.displayManager.sessionCommands = ''
+    eval $(/run/wrappers/bin/gnome-keyring-daemon --start --components=secrets,ssh,pkcs11)
+    export SSH_AUTH_SOCK
+  '';
 
   imports = [
     ./services/xserver.nix