Difference between revisions of "Slock"

From NixOS Wiki
Jump to: navigation, search
(Add warning about the new wiki)
m (rollback unauthorized mass edits)
Tag: Rollback
 
Line 1: Line 1:
{{warning|1=You are reading an article on the deprecated unofficial wiki. For the up to date version of this article, see https://wiki.nixos.org/wiki/Slock.}}
 
 
 
{{DISPLAYTITLE:slock}}
 
{{DISPLAYTITLE:slock}}
 
== Setup ==
 
== Setup ==

Latest revision as of 10:53, 6 April 2024

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.