Hi replying to two e-mails at once since your questions are so similar,
I hope it won't cause much confusion.

Dakota Logan <dklo...@riseup.net> writes:

> Hi!
>
> Up until now on my Guix System desktop, SSH has worked flawlessly with
> the (Wayland) GNOME keyring. But after updating today, the graphical
> popup window which would ask me for my SSH keyring password and store it
> for the rest of the session no longer appears. I have to type it in
> every time.
>
> I'm hesitant to start using ssh-agent in the traditional $(eval
> ssh-agent) way, because it's worked in GNOME without configuration up
> until now.
>
> Is anyone else running into this issue?

Yes, everyone has this issue, because with gnome 46 this functionality
has been removed.
m4xxed made a home service and shared it, they sent this link
through IRC: https://paste.debian.net/1363019. This starts a service
upon login that will be used by ssh.

Hugo Nobrega <hugonobr...@gmail.com> writes:

> Hi Guix,
>
> As of gnome-keyring 46, the ssh functionality is disabled by default in
> gnome-keyring-daemon and has been moved to gcr [1]
> This means that currently (at least as far as I can see) the gnome-keyring
> SSH functionality does not work in guix
>
> However, if I manually run
>
> export SSH_AUTH_SOCK=/run/user/1000/gcr/ssh
> /gnu/store/<hash>-gcr-3.41.2/libexec/gcr-ssh-agent /run/user/1000/gcr
>
> then, hooray!, gnome-keyring is able to handle my ssh keys again!
>
> Now, my question is: what would be the proper way to set this up in guix
> (system)?

Higher up I sent a service for guix home, if you instead want to solve
this via system, I am not sure what the best way is to do this with
system. Using shepherd services is kind of out of the question as you
cannot start a shepherd service for arbitrary users, you need to start
it as a specific one.

One way would be to use the xdg autostart feature of gnome, specifically
to make a desktop file in one of the $XDG_CONFIG_DIRS/etc/xdg/autostart
folders. The one for system is /run/current-system/profile/etc/xdg, and
you write to it by making a package that will produce
/etc/xdg/desktop-file-here in the output and then putting it to your
operating-system's packages field, or if you were interested in making
it a service you could make a service that extends profile-service-type.
Let me know if you need further assistance with making this package.

>
> [1] https://wiki.archlinux.org/title/GNOME/Keyring#SSH_keys
>
> Best regards
> Hugo

Regards,
Rutherther

Reply via email to