[Nix-dev] Disabling gnome-keyring xdg autostart configuration

Philip Potter philip.g.potter at gmail.com
Sat Jun 18 13:24:22 CEST 2016


Hello all,

I'm using NixOS and trying to set up gpg-agent under gnome.  As part
of this, I want to use gpg-agent as an ssh-agent.

However, gnome-keyring also acts as an ssh-agent, so I want to disable
this functionality.

It's possible to disable this by compiling it out entirely [1] but
this seems heavyweight, not least because it would require recompiling
anything which depends on gnome-keyring.

It seems it's also possible to disable it by removing the
/etc/xdg/autostart symlink for the ssh module [2].

Is it possible to do this in NixOS? Enabling gnome causes the
gnome3.gnome_keyring package to be added to systemPackages, which
seems to automatically add all gnome-keyring /etc/xdg/autostart files
to the system profile. Can I suppress a single autostart script when
adding a package to systemPackages? Is there some sort of package
override that would let me do this?

Phil

[1]: https://wiki.gnome.org/Projects/GnomeKeyring/Ssh
[2]: https://wiki.archlinux.org/index.php/GNOME/Keyring#Disable_keyring_daemon_SSH_component


More information about the nix-dev mailing list