From 309644eab2af43c3b4109055a6e89beaaafb9ba7 Mon Sep 17 00:00:00 2001 From: oqyude Date: Tue, 15 Sep 2026 21:22:33 +0300 Subject: [PATCH] fixes --- modules/essentials/services.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/essentials/services.nix b/modules/essentials/services.nix index 7c011a8..4559de0 100644 --- a/modules/essentials/services.nix +++ b/modules/essentials/services.nix @@ -8,8 +8,10 @@ # All real hosts (not the bare "minimal" test config) get OOM protection # and a bounded journal. - services.earlyoom.enable = lib.mkIf (xlib.device.type != "minimal") true; - services.journald.extraConfig = lib.mkIf (xlib.device.type != "minimal") '' - SystemMaxUse=512M - ''; + services = { + earlyoom.enable = lib.mkIf (xlib.device.type != "minimal") true; + journald.settings.Journal = lib.mkIf (xlib.device.type != "minimal") { + SystemMaxUse = "512M"; + }; + }; }