1{
2 programs.virt-manager.enable = true;
3 virtualisation.libvirtd = {
4 enable = true;
5 qemu.swtpm.enable = true;
6 };
7
8 virtualisation.waydroid.enable = true;
9
10 # try virtualbox
11 virtualisation.virtualbox.host = {
12 enable = true;
13 enableKvm = true;
14 enableExtensionPack = false;
15 addNetworkInterface = false; # conflicts with KVM
16 };
17
18 # GPU Passthrough
19 # boot.initrd.kernelModules = [
20 # "vfio_pci" "vfio" "vfio_iommu_type1" "amdgpu"
21 # ];
22 # boot.kernelParams = lib.singleton ("vfio-pci.ids=" + lib.concatStringsSep "," [
23 # "1002:7480" # GPU video
24 # "1002:ab30" # GPU Audio
25 # ]);
26 # virtualisation.spiceUSBRedirection.enable = true;
27
28 # vm performance is still terrible after pinning
29}