From 84f6501679881414370fd1b50fddd30b123d3b0f Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 24 Jan 2025 23:37:23 +0000 Subject: [PATCH] add oom killer to merlin --- hosts/merlin/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/merlin/default.nix b/hosts/merlin/default.nix index b8eb206..7844783 100644 --- a/hosts/merlin/default.nix +++ b/hosts/merlin/default.nix @@ -85,6 +85,13 @@ in { fsType = "btrfs"; }; + services = { + earlyoom = { + enable = true; + freeMemThreshold = 3; + }; + }; + networking = { hostName = "merlin"; nameservers = ["${piholeIp}" "${gatewayIp}" "8.8.8.8"];