nixos-config/system/sandbar/vfio.nix

18 lines
280 B
Nix
Raw Normal View History

{ ... }:
{
boot.kernelParams = [
"intel_iommu=on"
"vfio-pci.ids=1b21:1242"
];
boot.initrd.kernelModules = [
"vfio"
"vfio_pci"
"vfio_iommu_type1"
"iommufd"
];
services.udev.extraRules = ''
SUBSYSTEM=="vfio", MODE="660", GROUP="wheel"
'';
}