From ca27875840fc9e62543e112c9c75bf8a5b25c24a Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 16 Sep 2025 11:03:55 -0400 Subject: shinji: iommu & vfio --- hosts/shinji/hardware.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'hosts/shinji') diff --git a/hosts/shinji/hardware.nix b/hosts/shinji/hardware.nix index e199a8d..cfa6b71 100644 --- a/hosts/shinji/hardware.nix +++ b/hosts/shinji/hardware.nix @@ -18,8 +18,16 @@ "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = []; + boot.initrd.kernelModules = [ + "vfio_pci" + "vfio" + "vfio_iommu_type1" + ]; boot.kernelModules = ["kvm-amd"]; + boot.blacklistedKernelModules = ["nouveau"]; + boot.kernelParams = [ + "amd_iommu=on" + ]; boot.extraModulePackages = []; # supress annoying acpi error msgs -- cgit v1.2.3-freya