This commit is contained in:
2026-09-15 21:22:33 +03:00
parent ba5a2b378e
commit 309644eab2
+6 -4
View File
@@ -8,8 +8,10 @@
# All real hosts (not the bare "minimal" test config) get OOM protection # All real hosts (not the bare "minimal" test config) get OOM protection
# and a bounded journal. # and a bounded journal.
services.earlyoom.enable = lib.mkIf (xlib.device.type != "minimal") true; services = {
services.journald.extraConfig = lib.mkIf (xlib.device.type != "minimal") '' earlyoom.enable = lib.mkIf (xlib.device.type != "minimal") true;
SystemMaxUse=512M journald.settings.Journal = lib.mkIf (xlib.device.type != "minimal") {
''; SystemMaxUse = "512M";
};
};
} }