From 1949c9fa24ddafd195faa4e4618cd4fd73d2b207 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Tue, 1 Feb 2022 10:47:36 -0500 Subject: [PATCH] feat(grfn/yeren): enable services.earlyoom Let's see if this'll prevent my system from locking up when I try to do too much compilation at once Change-Id: Ie1ecb973801a6ea51f57ed5f25a1964647f54e77 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5156 Reviewed-by: grfn Autosubmit: grfn Tested-by: BuildkiteCI --- users/grfn/system/system/machines/yeren.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/users/grfn/system/system/machines/yeren.nix b/users/grfn/system/system/machines/yeren.nix index 5bdb8eab0..228631c8c 100644 --- a/users/grfn/system/system/machines/yeren.nix +++ b/users/grfn/system/system/machines/yeren.nix @@ -65,6 +65,11 @@ device = "/dev/disk/by-uuid/b627cb0e-0451-4f25-94d0-6497e01f0da4"; }]; + services.earlyoom = { + enable = true; + freeMemThreshold = 5; + }; + services.xserver = { exportConfiguration = true; extraConfig = ''