Cannot switch between users (Gnome 40.1)

Hello everyone,

I can log in to each of my accounts sequentially, but I cannot switch from one account to another while still being logged. There is no “Switch User” option in the user menu. The same applies to the lock screen, too.

This is probably a minor issue, but I am new to NixOS (21.05) and I don’t know what to do. So far, I like NixOS a lot, but this tiny problem keeps me from fully switching to NixOS.

I am thankful for any hints.

There are several conditions for the switch user option to appear:

Most importantly, you need multiple non-system users.

See also gnome3 logout button doesn't show · Issue #100108 · NixOS/nixpkgs · GitHub for more details.

There might also be an issue with AccountsService returning incorrect information:

Thanks for your detailed reply. Looks like I am affected by issue #84634.