modularize virtualization settings
This commit is contained in:
parent
99816f0d3f
commit
ff1b655d3c
|
@ -9,5 +9,6 @@
|
||||||
./yubikey.nix
|
./yubikey.nix
|
||||||
./audio.nix
|
./audio.nix
|
||||||
./graphics.nix
|
./graphics.nix
|
||||||
|
./virtualisation.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,6 @@ in {
|
||||||
virtualisation.libvirtd.qemu.ovmf.enable = true;
|
virtualisation.libvirtd.qemu.ovmf.enable = true;
|
||||||
virtualisation.libvirtd.qemu.ovmf.packages = [pkgs.OVMFFull.fd];
|
virtualisation.libvirtd.qemu.ovmf.packages = [pkgs.OVMFFull.fd];
|
||||||
virtualisation.libvirtd.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
programs.dconf.enable = true;
|
|
||||||
# boot.kernelModules = [ "vfio" "vfio_iommu_type1" "vfio_pci" "vfio_virqfd" ];
|
# boot.kernelModules = [ "vfio" "vfio_iommu_type1" "vfio_pci" "vfio_virqfd" ];
|
||||||
# boot.kernelParams = [ "amd_iommu=on" "iommu=pt" "vfio-pci.ids=1002:699f,1002:aae0" "video=efifb:off" ];
|
# boot.kernelParams = [ "amd_iommu=on" "iommu=pt" "vfio-pci.ids=1002:699f,1002:aae0" "video=efifb:off" ];
|
||||||
virtualisation.libvirtd.onBoot = "start";
|
virtualisation.libvirtd.onBoot = "start";
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
yubikey.enable = true;
|
yubikey.enable = true;
|
||||||
audio.enable = true;
|
audio.enable = true;
|
||||||
graphics.enable = true;
|
graphics.enable = true;
|
||||||
|
virtualisation.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
|
|
Loading…
Reference in a new issue