diff --git a/modules/hardware/homelab.nix b/modules/hardware/homelab.nix index 906b24b..ba76f66 100644 --- a/modules/hardware/homelab.nix +++ b/modules/hardware/homelab.nix @@ -1,8 +1,8 @@ { ... }: { imports = [ - # ./misc/cpu-hotplug.nix - # ./misc/serial.nix - # ./misc/qemu-virtio.nix + ./misc/cpu-hotplug.nix + ./misc/serial.nix + ./misc/qemu-virtio.nix # ^^ only used if vm ./core/firmware.nix diff --git a/modules/hardware/misc/qemu-virtio.nix b/modules/hardware/misc/qemu-virtio.nix new file mode 100644 index 0000000..fef199b --- /dev/null +++ b/modules/hardware/misc/qemu-virtio.nix @@ -0,0 +1,14 @@ +{ ... }: { + boot.initrd.availableKernelModules = [ + "virtio_net" + "virtio_pci" + "virtio_mmio" + "virtio_blk" + "virtio_scsi" + "virtio_console" + ]; + services = { + qemuGuest.enable = true; + spice-vdagentd.enable = true; + }; +} \ No newline at end of file