added iommu support for Quark
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
@@ -24,5 +24,5 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
boot.extraModprobeConfig = "options kvm_amd nested=1";
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user