Apply conditional kernel loading to other devices too

This commit is contained in:
Rudolf Tucek committed 2026-08-09 01:30:25 +02:00
1 parent a8e9cb2bc3
commit a77eb1da40
2 files changed
+8 -4

No files matched your search

+4 -2
View File
@@ -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 -2
View File
@@ -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;
}