From 032b527d2e603368e7b43e2e2eb2f6b5dcd04996 Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Sun, 13 Apr 2025 20:35:12 -0400 Subject: [PATCH] Add kernelModules and kernelParameters --- hosts/hephaestus/configuration.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hosts/hephaestus/configuration.nix b/hosts/hephaestus/configuration.nix index 55b619a..4ebf228 100644 --- a/hosts/hephaestus/configuration.nix +++ b/hosts/hephaestus/configuration.nix @@ -29,8 +29,17 @@ in }; boot = { - kernelModules = [ "kvm-amd" ]; + kernelModules = [ + "kvm-amd" + "vfio_pci" + "vfio" + "vfio_iommu_type1" + "vfio_virqfd" + ]; kernelPackages = pkgs.linuxPackages_latest; + kernelParams = [ + "amd_iommu=on" + ]; loader = { efi.canTouchEfiVariables = true;