about summary refs log tree commit diff
path: root/users/grfn/system
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2022-02-01T15·47-0500
committerclbot <clbot@tvl.fyi>2022-02-01T15·52+0000
commit1949c9fa24ddafd195faa4e4618cd4fd73d2b207 (patch)
treef76c544287e8d5631764631f560630bc3179efe4 /users/grfn/system
parent8db3f1d56264aa8657b857f5ab1d2cf5a9da92e1 (diff)
feat(grfn/yeren): enable services.earlyoom r/3736
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 <grfn@gws.fyi>
Autosubmit: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/grfn/system')
-rw-r--r--users/grfn/system/system/machines/yeren.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/users/grfn/system/system/machines/yeren.nix b/users/grfn/system/system/machines/yeren.nix
index 5bdb8eab0cf5..228631c8cc6f 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 = ''