I got a solution to my problem in the end! I got stuck for a while because removing the /etc/xdg/autostart symlink is basically impossible without recompiling the gnome-keyring package. However, the xdg autostart standard allows users to override these values by putting files into ~/.config.
This askubuntu stack exchange answer captures it perfectly: http://askubuntu.com/a/607563/559764 All I had to do was: cp /run/current-system/sw/etc/xdg/autostart/gnome-keyring-ssh.desktop ~/.config/autostart echo Hidden=true >> ~/.config/autostart/gnome-keyring-ssh.desktop and now gnome-keyring's ssh component no longer starts, and I can use gpg-agent as my ssh-agent again as desired. I think there may be a way to do this more declaratively by instead installing a package into the user profile which would drop the required file into ~/.nix-profile/etc/xdg/autostart/gnome-keyring-ssh.desktop but I haven't fully investigated this yet. Phil On 18 June 2016 at 12:24, Philip Potter <[email protected]> wrote: > 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 _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
