Slock: Difference between revisions

From NixOS Wiki
imported>Mic92
imported>HLandau
No edit summary
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, just enable the following in your <code>configuration.nix</code> :
 
<syntaxHighlight lang="nix">
<syntaxHighlight lang="nix">
programs.slock.enable = true;
{
  ...
  programs.slock.enable = true;
  ...
}
</syntaxHighlight>
</syntaxHighlight>
==Troubleshooting==
==="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:Configuration]]

Revision as of 22:57, 24 October 2017

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.