Yubikey-agent: agent 11: could not get public key: command failed: smart card error 6a82: data object or application not found

Hi! I enabled the yubikey-agent option from home-manager. However, if I try to use my yubikey for ssh, I’m getting the following output from journalctl --user -eu yubikey-agent.service:

> journalctl --user -eu yubikey-agent.service
Feb 18 09:55:44 pc yubikey-agent[4350]: 2026/02/18 09:55:44 agent 11: could not get public key: command failed: smart card error 6a82: data object or application not found

any ideas how to fix that? Using ykman from yubikey-manager works normally.