From 3d5a75511fa26ab54f5e157ee0d39b1b38bbfed8 Mon Sep 17 00:00:00 2001 From: RootHost-Stormwind Date: Tue, 20 Oct 2026 17:34:07 +0200 Subject: [PATCH] fix: udev vfio rule to truenas sata controller 07:00.0, drop stale ahci rule --- hardware-configuration.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/hardware-configuration.nix b/hardware-configuration.nix index 9fb677a..172958f 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -28,15 +28,10 @@ # Bind per-device via udev using driver_override and drivers_probe services.udev.extraRules = '' - # Bind 0000:09:00.0 to vfio-pci - ACTION=="add", SUBSYSTEM=="pci", KERNEL=="0000:09:00.0", \ + # Bind 0000:07:00.0 (Marvell 88SE9215, passed through to truenas as sata-pci) to vfio-pci + ACTION=="add", SUBSYSTEM=="pci", KERNEL=="0000:07:00.0", ATTR{vendor}=="0x1b4b", ATTR{device}=="0x9215", \ ATTR{driver_override}="vfio-pci", \ - RUN+="/bin/sh -c 'modprobe vfio-pci; echo 0000:09:00.0 > /sys/bus/pci/drivers_probe'" - - # Bind 0000:08:00.0 to ahci (host) - ACTION=="add", SUBSYSTEM=="pci", KERNEL=="0000:08:00.0", \ - ATTR{driver_override}="ahci", \ - RUN+="/bin/sh -c 'modprobe ahci; echo 0000:08:00.0 > /sys/bus/pci/drivers_probe'" + RUN+="/bin/sh -c 'modprobe vfio-pci; echo 0000:07:00.0 > /sys/bus/pci/drivers_probe'" ''; boot.kernel.sysctl = {