diff --git a/hardware-configuration.nix b/hardware-configuration.nix index d19f13c..4795d77 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -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; + } + ]; }