Slock: Difference between revisions

imported>Fadenb
Created page with "== 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 er..."
 
imported>Nix
m move to Applications category
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:slock}}
== Setup ==
== Setup ==
=== cannot disable the out-of-memory killer for this process ===
To make slock available, amend <tt>/etc/nixos/configuration.nix</tt> as follows:
slock requires root for accessing passwords and protecting itself from OOM killing. To fix this error, add slock to your system packages and setuidPrograms by modifying your global configuration.nix like so:
<syntaxHighlight lang="nix">
{
  ...
  programs.slock.enable = true;
  ...
}
</syntaxHighlight>


environment.systemPackages = with pkgs; [ slock ];
==Troubleshooting==
security.setuidPrograms = [ "slock" ];
==="cannot disable the out-of-memory killer for this process"===
slock requires root for accessing passwords and protecting itself from OOM killing. Adding <tt>slock</tt> to <tt>environment.systemPackages</tt> is not adequate (nor is it necessary); slock should be enabled via the provided NixOS module via the means shown above.
 
[[Category:Applications]]