mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-01 05:23:29 +01:00
Apply conditional kernel loading to other devices too
This commit is contained in:
2 files changed
+8
-4
No files matched your search
@@ -4,8 +4,10 @@
|
||||
../../.
|
||||
];
|
||||
|
||||
# Add Motorcomm YT6801 Driver if available
|
||||
# Add Motorcomm YT6801 Driver if available and kernel version is below 7.0
|
||||
boot.extraModulePackages =
|
||||
with config.boot;
|
||||
lib.lists.optional (kernelPackages ? yt6801) kernelPackages.yt6801;
|
||||
lib.lists.optional (
|
||||
(lib.versionOlder kernelPackages.kernel.version "7.0") && (kernelPackages ? yt6801)
|
||||
) kernelPackages.yt6801;
|
||||
}
|
||||
@@ -4,8 +4,10 @@
|
||||
../../.
|
||||
];
|
||||
|
||||
# Add Motorcomm YT6801 Driver if available
|
||||
# Add Motorcomm YT6801 Driver if available and kernel version is below 7.0
|
||||
boot.extraModulePackages =
|
||||
with config.boot;
|
||||
lib.lists.optional (kernelPackages ? yt6801) kernelPackages.yt6801;
|
||||
lib.lists.optional (
|
||||
(lib.versionOlder kernelPackages.kernel.version "7.0") && (kernelPackages ? yt6801)
|
||||
) kernelPackages.yt6801;
|
||||
}
|
||||
Reference in new issue
Block a user