forked from the-distro/infra
builders: configure a swapfile + zswap
This commit is contained in:
parent
293bc52ace
commit
7d9461808c
|
@ -51,6 +51,18 @@ in
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
swapDevices = [
|
||||||
|
{
|
||||||
|
device = "/swapfile";
|
||||||
|
size = 50 * 1024; # 50GiB
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
zramSwap = {
|
||||||
|
enable = true;
|
||||||
|
memoryPercent = 25;
|
||||||
|
};
|
||||||
|
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
"console=ttyS0,115200"
|
"console=ttyS0,115200"
|
||||||
"console=tty1"
|
"console=tty1"
|
||||||
|
|
Loading…
Reference in a new issue