From b9d998830df941d41af2b9d67e70e7e031fdcb36 Mon Sep 17 00:00:00 2001 From: Jonas Date: Sun, 1 Oct 2023 02:45:32 +0200 Subject: [PATCH] remove obsolete kernel modules --- modules/vfio/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/vfio/default.nix b/modules/vfio/default.nix index 12010b0..d5fb7f8 100644 --- a/modules/vfio/default.nix +++ b/modules/vfio/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, kernel, config, ... }: +{ lib, pkgs, config, ... }: with lib; let cfg = config.virtualisation.vfio; @@ -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" ]; }; -} \ No newline at end of file +}