Added iommu support

This commit is contained in:
Tim Schubert 2022-04-04 20:25:30 +02:00
parent 7795c68ca0
commit a8548bfdc9
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
2 changed files with 14 additions and 2 deletions

View file

@ -20,6 +20,15 @@
boot.kernelParams = [
"console=ttyS0,115200"
"amd_iommu=on"
"iommu=pt"
];
boot.kernelModules = [
"kvm-amd"
"vfio"
"vfio_iommu_type1"
"vfio_pci"
"vfio_virqfd"
];
networking.interfaces.enp2s0.useDHCP = false;
@ -41,7 +50,11 @@
virtualisation.libvirtd.enable = true;
environment.systemPackages = [ pkgs.curl ];
environment.systemPackages = with pkgs; [
curl
flashrom
dmidecode
];
system.stateVersion = "22.05";
}

View file

@ -10,7 +10,6 @@
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "ehci_pci" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =