From 932a03e2248651761743611b59914d64a49cf22c Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 27 May 2022 15:29:32 -0700 Subject: [PATCH] feat(wpcarro/tarasco): Enable earlyoom See the comment or other CLs I've made in the past about earlyoom. Change-Id: Ia4c0c61784aa3e76644de91a95e8b9fbdd743b54 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5748 Tested-by: BuildkiteCI Reviewed-by: wpcarro Autosubmit: wpcarro --- users/wpcarro/nixos/tarasco/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/users/wpcarro/nixos/tarasco/default.nix b/users/wpcarro/nixos/tarasco/default.nix index c8b2d0235..ffb6e4c7e 100644 --- a/users/wpcarro/nixos/tarasco/default.nix +++ b/users/wpcarro/nixos/tarasco/default.nix @@ -63,6 +63,10 @@ in }; services = wpcarro.common.services // { + # Check the amount of available memory and free swap a few times per second + # and kill the largest process if both are below 10%. + earlyoom.enable = true; + tailscale.enable = true; openssh.enable = true;