slock

From NixOS Wiki
Revision as of 06:33, 20 September 2021 by imported>Nix (move to Applications category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Setup

To make slock available, amend /etc/nixos/configuration.nix as follows:

{
  ...
  programs.slock.enable = true;
  ...
}

Troubleshooting

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

slock requires root for accessing passwords and protecting itself from OOM killing. Adding slock to environment.systemPackages is not adequate (nor is it necessary); slock should be enabled via the provided NixOS module via the means shown above.