seperate qemu settings
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 34s
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 34s
This commit is contained in:
parent
021c7f7200
commit
4050b28ee3
2 changed files with 17 additions and 3 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
# ./misc/cpu-hotplug.nix
|
./misc/cpu-hotplug.nix
|
||||||
# ./misc/serial.nix
|
./misc/serial.nix
|
||||||
# ./misc/qemu-virtio.nix
|
./misc/qemu-virtio.nix
|
||||||
# ^^ only used if vm
|
# ^^ only used if vm
|
||||||
|
|
||||||
./core/firmware.nix
|
./core/firmware.nix
|
||||||
|
|
|
||||||
14
modules/hardware/misc/qemu-virtio.nix
Normal file
14
modules/hardware/misc/qemu-virtio.nix
Normal file
|
|
@ -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;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue