1password xwayland failing unlock system authentication

Been using 1password and gnome on nixos for while and everything worked including system authentication with a yubikey for unlocking the GUI, using 1password cli (op) or using 1password ssh keys.

I am in the process to switch to wayland (sway or niri) and I am more less back to the same state expect for 1password, which still requires the main password for every operation.

On wayland, I use gnome-keyring and I can see that 1password 2FA secret is being stored correctly but somehow it fails to retrieve the secret due challenge failures. Relevant 1password log output below

INFO  2025-12-21T17:16:04.660+00:00 runtime-worker(ThreadId(7)) [1P:app/op-app/src/app/backend/lock_screen.rs:107] System unlock is enabled: true
INFO  2025-12-21T17:16:04.661+00:00 runtime-worker(ThreadId(154)) [1P:foundation/op-system-auth/src/lib.rs:344] Biometry is available for 1 or more accounts
WARN  2025-12-21T17:16:04.683+00:00 runtime-worker(ThreadId(7)) [1P:data/op-data-cache/src/unlock.rs:105] System unlock failed: SystemAuthError(FailedSystemAuthenticationChallenge)

System info:

Linux nixos 6.12.62 #1-NixOS x86_64 GNU/Linux

25.11.20251215.c6f52eb (Xantusia)

1password-8.11.18

gnome-keyring-48.0

polkit-126

Turns out I was missing the polkit authentication agent entirely Polkit - NixOS Wiki. You can pick one from here polkit - ArchWiki .

Tried soteria and gnome_polkit both seem to work fine although it would be good to skip the authentication dialog enterily when using the yubikey.