{ modulesPath, lib, config, ... }: { imports = [(modulesPath + "/profiles/qemu-guest.nix")]; boot.loader.grub.device = "/dev/vda"; boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"]; boot.initrd.kernelModules = ["nvme"]; fileSystems."/" = { device = "/dev/vda3"; fsType = "ext4"; }; boot = { kernelModules = ["kvm-intel"]; tmp.cleanOnBoot = true; }; swapDevices = [ { device = "/swapfile"; size = 8 * 1024; } ]; zramSwap.enable = false; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }