From 1ae58547573277b97378705cbe1a201624c39c45 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Fri, 29 Mar 2024 17:54:09 -0500 Subject: [PATCH] Add pci passthrough capability. --- nixos/gandalf/hardware-configuration.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/gandalf/hardware-configuration.nix b/nixos/gandalf/hardware-configuration.nix index 609f60a..2fd454a 100644 --- a/nixos/gandalf/hardware-configuration.nix +++ b/nixos/gandalf/hardware-configuration.nix @@ -10,8 +10,9 @@ boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "mpt3sas" "isci" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; + boot.kernelModules = [ "kvm-intel" "vfio" "vfio_iommu_type1" "vfio_pci" "vfio_virqfd" ]; boot.extraModulePackages = [ ]; + boot.kernelParams = [ "iommu=pt" "intel_iommu=on" ]; fileSystems."/" = { device = "/dev/disk/by-uuid/d5e03c8a-9488-47f7-b911-339bdae36009";