Slock

From NixOS Wiki

Setup

cannot disable the out-of-memory killer for this process

slock requires root for accessing passwords and protecting itself from OOM killing. To fix this error, just enable the following in your configuration.nix :

programs.slock.enable = true;