[Nix-dev] Disabling gnome-keyring xdg autostart configuration
Azul
mail at azulinho.com
Tue Jun 21 22:51:13 CEST 2016
I simply commit my .config folder into git.
there is so much customization to be done on the higher level window
managers and apps, that I personally don't think its worth the time finding
about a particular way to set a particular setting.
On 21 Jun 2016 22:35, "Philip Potter" <philip.g.potter at gmail.com> wrote:
> 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 <philip.g.potter at gmail.com> 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
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160621/881992f2/attachment.html>
More information about the nix-dev
mailing list