Global: add IOMMU toggle to virualisation

This commit is contained in:
blahai 2024-11-22 21:51:14 +02:00
parent 12ef689a43
commit 233e4fe6a8
Signed by: blahai
SSH key fingerprint: SHA256:ZfCryi+V64yG+vC1ZIIsqgvBCmA31tTi7RJ6M8CvpRc

View file

@ -1,5 +1,7 @@
{ pkgs, lib, config, ... }: {
boot = {
{ pkgs, lib, config, ... }:
let enableIOMMU = true;
in {
boot = lib.mkIf enableIOMMU {
initrd.kernelModules = lib.mkBefore [
"kvm-amd"
"vfio_pci"
@ -49,5 +51,4 @@
moonlight-qt # for linux vms
looking-glass-client # for windows vms :husk:
];
}