diff --git a/nixosConfigurations/muede-lpt2/default.nix b/nixosConfigurations/muede-lpt2/default.nix index a49b2d3..fbcf897 100644 --- a/nixosConfigurations/muede-lpt2/default.nix +++ b/nixosConfigurations/muede-lpt2/default.nix @@ -34,6 +34,14 @@ MemoryMax = lib.mkForce "80%"; }; + # Swap = 15.5GiB zram (used first) + 32GiB swapfile. Default earlyoom swap + # threshold (10% free) only fires after ~44GiB are used, i.e. deep into + # thrashing. 60% free ≈ zram full plus a few GiB of swapfile. + services.earlyoom = { + freeSwapThreshold = 60; + enableNotifications = true; + }; + services.xserver.xkb = { # Configure keymap in X11 layout = "de";