summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-09-16 11:03:55 -0400
committerFreya Murphy <freya@freyacat.org>2025-09-16 11:03:55 -0400
commitca27875840fc9e62543e112c9c75bf8a5b25c24a (patch)
treeb72efdb729d7fd935216d882ccccc06ff5918f68 /hosts
parentallow web ports (diff)
downloaddotfiles-nix-ca27875840fc9e62543e112c9c75bf8a5b25c24a.tar.gz
dotfiles-nix-ca27875840fc9e62543e112c9c75bf8a5b25c24a.tar.bz2
dotfiles-nix-ca27875840fc9e62543e112c9c75bf8a5b25c24a.zip
shinji: iommu & vfio
Diffstat (limited to '')
-rw-r--r--hosts/shinji/hardware.nix10
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