fix lenovo-yogabook module not found for kernel-lts

This commit is contained in:
2023-10-18 21:45:28 +08:00
parent 66e602e750
commit fb924cd8e0

View File

@@ -28,9 +28,7 @@ inputs:
"virtio_net" "virtio_pci" "xhci_pci" "virtio_ring" "virtio_scsi" "cryptd" "crypto_simd" "libaes"
# networking for nas
"igb"
# yogabook keyboard
"lenovo-yogabook"
] ++ kernel.modules.initrd;
] ++ kernel.modules.initrd ++ (if (!kernel.useLts) then [ "lenovo-yogabook" ] else []);
extraModulePackages = (with inputs.config.boot.kernelPackages; [ v4l2loopback ]) ++ kernel.modules.install;
extraModprobeConfig = builtins.concatStringsSep "\n" kernel.modules.modprobeConfig;
kernelParams = [ "delayacct" "acpi_osi=Linux" ];