I3 and gnome-keyring

I’m not sure what changed, but the keyring daemon no longer starts automatically when I log into i3, only in Gnome desktop. It sounds like that’s actually the expected behavior.

This makes it straightforward to set the keyring up for use in i3:

services.xserver.windowManager.i3.extraSessionCommands = ''
  eval $(gnome-keyring-daemon --daemonize)
  export SSH_AUTH_SOCK
'';

At one point, I gave up and switched to using gpg-agent:

programs.gnupg.agent = {
  enable = true;
  enableSSHSupport = true;
};

This works nicely, except for how it handles sudo.

2 Likes