From 92874c19bfef708134633fe7ee6fc997deb7252e Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 26 Aug 2020 17:50:24 +0200 Subject: tv alnus: enable earlyoom; prefer firefox tabs --- tv/1systems/alnus/config.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tv/1systems') diff --git a/tv/1systems/alnus/config.nix b/tv/1systems/alnus/config.nix index d7589bc1f..f8f1b24fa 100644 --- a/tv/1systems/alnus/config.nix +++ b/tv/1systems/alnus/config.nix @@ -58,6 +58,12 @@ with import ; allowUnfree = true; }; + services.earlyoom.enable = true; + services.earlyoom.freeMemThreshold = 5; + systemd.services.earlyoom.environment.EARLYOOM_ARGS = toString [ + "--prefer '^(Web Content|Privileged Cont)$'" # firefox tabs + ]; + services.xserver = { enable = true; layout = "de"; -- cgit v1.2.3