virgil/vfio

This commit is contained in:
tulg 2025-10-22 17:48:49 +03:00
parent a4e5b89f0e
commit f58d2f9232
5 changed files with 94 additions and 72 deletions

10
hosts/virgil/vfio.nix Normal file
View file

@ -0,0 +1,10 @@
{
config,
pkgs,
...
}: {
boot.kernelparams = ["amd_iommu=on"];
boot.blacklistedKernelModules = ["nvidia" "nouveau"];
boot.kernelModules = ["vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio"];
boot.extraModprobeConfig = "options vfio-pci ids=10de:2705,10de:22bb";
}