1
0
Fork 0

Systems: load initrd kernel modules

This commit is contained in:
Aires 2024-12-14 18:00:26 -05:00
parent f2f6bd0ff9
commit d9635231bf
3 changed files with 21 additions and 23 deletions

View file

@ -10,7 +10,7 @@ in
boot = { boot = {
kernelModules = [ "kvm-amd" ]; kernelModules = [ "kvm-amd" ];
initrd.availableKernelModules = [ initrd.kernelModules = [
"kvm-amd" "kvm-amd"
"nvme" "nvme"
"xhci_pci" "xhci_pci"

View file

@ -31,27 +31,25 @@ in
options iwlwifi 11n_disable=8 options iwlwifi 11n_disable=8
''; '';
initrd = { initrd.kernelModules = [
availableKernelModules = [ "kvm-intel"
"kvm-intel" "surface_aggregator"
"surface_aggregator" "surface_aggregator_registry"
"surface_aggregator_registry" "surface_aggregator_hub"
"surface_aggregator_hub" "surface_hid_core"
"surface_hid_core" "surface_hid"
"surface_hid" "hid_multitouch"
"hid_multitouch" "8250_dw"
"8250_dw" "intel_lpss"
"intel_lpss" "intel_lpss_pci"
"intel_lpss_pci" "xhci_pci"
"xhci_pci" "thunderbolt"
"thunderbolt" "nvme"
"nvme" "usb_storage"
"usb_storage" "sd_mod"
"sd_mod" "surface_kbd"
"surface_kbd" "pinctrl_tigerlake"
"pinctrl_tigerlake" ];
];
};
kernelParams = [ kernelParams = [
"pci=hpiosize=0" # Prevent ACPI interrupt storm. See https://github.com/linux-surface/linux-surface/wiki/Surface-Pro-9#acpi-interrupt-storm "pci=hpiosize=0" # Prevent ACPI interrupt storm. See https://github.com/linux-surface/linux-surface/wiki/Surface-Pro-9#acpi-interrupt-storm

View file

@ -18,7 +18,7 @@ in
kernelModules = [ "kvm-amd" ]; kernelModules = [ "kvm-amd" ];
# Hardware defaults detected by nixos-generate-configuration # Hardware defaults detected by nixos-generate-configuration
initrd.availableKernelModules = [ initrd.kernelModules = [
"kvm-amd" "kvm-amd"
"nvme" "nvme"
"xhci_pci" "xhci_pci"