Added swap file

This commit is contained in:
Jan-Bulthuis 2025-02-23 14:48:32 +01:00
parent 77fc328c84
commit f7ea0d0c11
1 changed files with 8 additions and 1 deletions

View File

@ -35,7 +35,6 @@
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
swapDevices = [ ];
hardware.cpu.intel.updateMicrocode = true; hardware.cpu.intel.updateMicrocode = true;
# Filesystems # Filesystems
@ -52,5 +51,13 @@
"dmask=0077" "dmask=0077"
]; ];
}; };
# Swapfile
swapDevices = [
{
device = "/var/lib/swapfile";
size = 16 * 1024;
}
];
}; };
} }