I’ve set services.yubikey-agent.enable to true. However, even after rebooting I’m getting the following error message:
> ssh-add -l
Error connecting to agent: No such file or directory
Here is the output of some commands which I executed afterwards:
> systemctl --user status yubikey-agent.service
○ yubikey-agent.service - Seamless ssh-agent for YubiKeys
Loaded: loaded (/home/tornax/.config/systemd/user/yubikey-agent.service; linked; preset: ignored)
Active: inactive (dead)
TriggeredBy: ● yubikey-agent.socket
Docs: https://github.com/FiloSottile/yubikey-agent
> systemctl --user status yubikey-agent.socket
● yubikey-agent.socket - Unix domain socket for Yubikey SSH agent
Loaded: loaded (/home/tornax/.config/systemd/user/yubikey-agent.socket; enabled; preset: ignored)
Active: active (listening) since Wed 2026-02-18 01:52:38 CET; 4min 5s ago
Invocation: 2aedfef20fad43b8883ff4019ae995fc
Triggers: ● yubikey-agent.service
Docs: https://github.com/FiloSottile/yubikey-agent
Listen: /run/user/1000/yubikey-agent/yubikey-agent.sock (Stream)
Feb 18 01:52:38 pc systemd[2078]: Stopping Unix domain socket for Yubikey SSH agent...
Feb 18 01:52:38 pc systemd[2078]: Listening on Unix domain socket for Yubikey SSH agent.
> echo $SSH_AUTH_SOCK
/run/user/1000/keyring/ssh
> file /run/user/1000/keyring/ssh
/run/user/1000/keyring/ssh: cannot open `/run/user/1000/keyring/ssh' (No such file or directory)
Any ideas what I’m doing wrong?
EDIT (1): Ok, if my research is correct it seems like that keyring/ssh is coming from gnome-keyring but in nix repl I’m getting this:
nix-repl> nixosConfigurations.pc.config.home-manager.users.tornax.services.gnome-keyring.enable
false
funny enough, I always wondered why I had a “keyring” app installed on my system after an update but it never bother me… unless now ![]()