Slock: Difference between revisions

From NixOS Wiki
imported>Fadenb
No edit summary
imported>Mic92
Line 1: Line 1:
== Setup ==
== Setup ==
=== cannot disable the out-of-memory killer for this process ===
=== 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, add slock to your system packages and <del>setuidPrograms</del> security.wrappers by modifying your global configuration.nix like so :
slock requires root for accessing passwords and protecting itself from OOM killing. To fix this error, just enable the following in your <code>configuration.nix</code> :


security.wrappers = {
<syntaxHighlight lang="nix">
  slock.source = "${pkgs.slock}/bin/slock";
programs.slock.enable = true;
};
</syntaxHighlight>

Revision as of 21:36, 23 August 2017

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;