builders: configure a swapfile + zswap

This commit is contained in:
Pierre Bourdon 2024-07-13 04:40:51 +02:00
parent 293bc52ace
commit 7d9461808c
Signed by untrusted user: delroth
GPG key ID: 6FB80DCD84DA0F1C

View file

@ -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"