Bring IOMMU to Jeremiah

This commit is contained in:
Greg Hellings
2025-04-17 22:15:01 -05:00
parent b4d91b8215
commit 39b71456e0
+18 -3
View File
@@ -10,6 +10,9 @@
... ...
}: }:
let
passthru = [ ];
in
{ {
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
@@ -18,9 +21,21 @@
]; ];
# Bootloader. # Bootloader.
boot.loader = { boot = {
systemd-boot.enable = true; initrd.kernelModules = [
efi.canTouchEfiVariables = true; "vfio_pci"
"vfio"
"vfio_iommu_type1"
];
kernelParams = [
"amd_iommu=on"
"iommu=pt"
("vfio-pci.ids=" + (lib.concatStringsSep "," passthru))
];
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [