Skip to content

Commit

Permalink
remove obsolete kernel modules
Browse files Browse the repository at this point in the history
  • Loading branch information
j-brn authored Oct 1, 2023
1 parent d9d6db9 commit b9d9988
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/vfio/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, kernel, config, ... }:
{ lib, pkgs, config, ... }:
with lib;
let
cfg = config.virtualisation.vfio;
Expand Down Expand Up @@ -53,11 +53,9 @@ in {
"kvm.report_ignored_msrs=0"
]);

boot.kernelModules = lib.optional (kernel.kernelOlder "6.2") [ "vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio" ];

boot.initrd.kernelModules =
[ "vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio" ];
boot.blacklistedKernelModules =
optionals cfg.blacklistNvidia [ "nvidia" "nouveau" ];
};
}
}

0 comments on commit b9d9988

Please sign in to comment.