mirror of
https://github.com/oqyude/nixos.git
synced 2026-10-07 20:47:14 +03:00
fixes
This commit is contained in:
@@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user