server-config/hardware-configuration.nix
Danila Fedorin 28aad07d18 Add a swapfile. We run out of memory way too often.
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-11-30 05:46:47 +00:00

13 lines
280 B
Nix

{ modulesPath, ... }:
{
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;
}
];
}