Add a swapfile. We run out of memory way too often.

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
Danila Fedorin 2023-11-30 05:46:47 +00:00
parent b996c05034
commit 28aad07d18
1 changed files with 6 additions and 0 deletions

View File

@ -3,4 +3,10 @@
imports = [ "${modulesPath}/profiles/qemu-guest.nix" ];
boot.loader.grub.device = "/dev/vda";
fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; };
swapDevices = [
{
device = "/var/lib/swapfile";
size = 2*1024;
}
];
}