added iommu support for Quark

This commit is contained in:
yaroslav
2025-06-10 22:41:58 +03:00
parent 4f5ca1ef81
commit 84fcf26932
5 changed files with 9 additions and 2 deletions
+1
View File
@@ -91,6 +91,7 @@
./hosts/generic/configuration_generic.nix ./hosts/generic/configuration_generic.nix
./hosts/generic/users.nix ./hosts/generic/users.nix
./hosts/Quark/Quark-hardware.nix ./hosts/Quark/Quark-hardware.nix
./hosts/generic/virtualization.nix
# hm-stable.nixosModules.home-manager { # hm-stable.nixosModules.home-manager {
# home-manager.useUserPackages = true; # home-manager.useUserPackages = true;
# home-manager.users.yaroslav = { # home-manager.users.yaroslav = {
+1
View File
@@ -13,6 +13,7 @@
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
boot.kernelPackages = pkgs.linuxPackages_zen; boot.kernelPackages = pkgs.linuxPackages_zen;
boot.extraModprobeConfig = "options kvm_amd nested=1";
fileSystems."/" = fileSystems."/" =
{ #device = "/dev/disk/by-uuid/3126fadd-b793-4110-bcb7-577b7978cba2"; { #device = "/dev/disk/by-uuid/3126fadd-b793-4110-bcb7-577b7978cba2";
+5 -1
View File
@@ -10,9 +10,13 @@
boot.initrd.supportedFilesystems = [ "nfs" "nfsv4" "overlay" ]; boot.initrd.supportedFilesystems = [ "nfs" "nfsv4" "overlay" ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" "nfs" "nfsv4" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" "nfs" "nfsv4" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
swapDevices = [ ]; swapDevices = [ ];
boot.extraModprobeConfig = "options kvm_intel nested=1";
boot.kernelParams = [
"intel_iommu=on"
];
fileSystems."/" = { fileSystems."/" = {
device = "/dev/sda4"; device = "/dev/sda4";
+1
View File
@@ -12,6 +12,7 @@
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
boot.extraModprobeConfig = "options kvm_amd nested=1";
fileSystems."/" = fileSystems."/" =
{ device = "none"; { device = "none";
+1 -1
View File
@@ -24,5 +24,5 @@
}; };
}; };
}; };
boot.extraModprobeConfig = "options kvm_amd nested=1";
} }