From 845ec96991603729450948161c2114c33f758c1a Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Sat, 26 Jul 2025 17:37:32 +0100 Subject: [PATCH] hosts/artemis: update earlyoom --- hosts/artemis/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/hosts/artemis/default.nix b/hosts/artemis/default.nix index d8d629a..96465e0 100644 --- a/hosts/artemis/default.nix +++ b/hosts/artemis/default.nix @@ -1,5 +1,6 @@ { inputs, + config, lib, pkgs, ... @@ -53,9 +54,16 @@ in extraArgs = [ "-M" "409600,307200" - "-S" - "409600,307200" - ]; + ] + ++ ( + if config.swapDevices.zramSwap.enable or false then + [ + "-S" + "409600,307200" + ] + else + [ ] + ); }; services.sunshine = {