{ lib, modulesPath, pkgs, ... }: { imports = [ # Include the results of the hardware scan. (modulesPath + "/profiles/qemu-guest.nix") ./filesystem.nix ]; boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sr_mod" "virtio_blk" ]; boot.kernelPackages = pkgs.linuxPackages_latest; # Bootloader. boot.loader.grub.enable = true; boot.loader.grub.device = "/dev/vda"; boot.loader.grub.useOSProber = true; services.qemuGuest.enable = true; services.spice-vdagentd.enable = true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; }