Using a different password (pin) for the lock screen

I am trying to figure out if there is a way to have a different password for the lock screen while keeping the sudo / user password (e.g. for nixos-rebuild, SSH, etc.) the same.

If there is a way to do this through command line magic I’d also appreciate recommendations for how this could be implemented into a configuration.nix as I am quite new to Nix.

I am using Gnome, if that’s relevant.

Thanks :slightly_smiling_face:

Oof… You want specifically the screen lock to have a different password, huh? I think it’s based on PAM. Which is pluggable. So you could probably have two passwords for the same user. And possibly further control. I would look into PAM.