diff --git a/services/baremetal-builder/default.nix b/services/baremetal-builder/default.nix index 72443b3..af661fa 100644 --- a/services/baremetal-builder/default.nix +++ b/services/baremetal-builder/default.nix @@ -51,6 +51,18 @@ in options = [ "fmask=0022" "dmask=0022" ]; }; + swapDevices = [ + { + device = "/swapfile"; + size = 50 * 1024; # 50GiB + } + ]; + + zramSwap = { + enable = true; + memoryPercent = 25; + }; + boot.kernelParams = [ "console=ttyS0,115200" "console=tty1"