diff options
author | Freya Murphy <freya@freyacat.org> | 2025-09-16 11:03:55 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-09-16 11:03:55 -0400 |
commit | ca27875840fc9e62543e112c9c75bf8a5b25c24a (patch) | |
tree | b72efdb729d7fd935216d882ccccc06ff5918f68 | |
parent | allow web ports (diff) | |
download | dotfiles-nix-ca27875840fc9e62543e112c9c75bf8a5b25c24a.tar.gz dotfiles-nix-ca27875840fc9e62543e112c9c75bf8a5b25c24a.tar.bz2 dotfiles-nix-ca27875840fc9e62543e112c9c75bf8a5b25c24a.zip |
shinji: iommu & vfio
-rw-r--r-- | hosts/shinji/hardware.nix | 10 |
1 files changed, 9 insertions, 1 deletions
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 |