# From `nixos-generate-config --show-hardware-config` on spindle-exec-1, keeping the # bootstrap's GRUB on /dev/vda, labelled growable root and serial console. { modulesPath, ... }: { imports = [ "${modulesPath}/profiles/qemu-guest.nix" ]; boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_blk" ]; boot.kernelModules = [ "kvm-amd" ]; # The qxl DRM driver deadlocked PID 1 at shutdown; the console stays in VGA text mode and on ttyS0. boot.blacklistedKernelModules = [ "qxl" ]; boot.loader.grub.enable = true; boot.loader.grub.device = "/dev/vda"; boot.growPartition = true; boot.kernelParams = [ "console=ttyS0" ]; fileSystems."/" = { device = "/dev/disk/by-label/nixos"; fsType = "ext4"; autoResize = true; }; swapDevices = [ ]; networking.useDHCP = true; services.qemuGuest.enable = true; }