Load Motorcomm YT6801 only if kernel is below v7.0

TUXEDO used to recommend to install the Motorcomm YT6801 driver
manually, unless using one of their WebFAI-supported distributions.[^1]

However, starting with version v7.0[^2], the kernel has first-class
supported for the driver.

It's worth pointing out, that users may still manually apply
`linuxKernel.packages.*.yt6801` in order to apply the external kernel
module, supplied by the vendor directly.[^3]

[^1] https://www.tuxedocomputers.com/en/Motorcomm-YT6801-txtmotorcomm-yt6801-paket.tuxedo
[^2] https://github.com/torvalds/linux/commit/02ff155ea2812ea25a086665522fd4fa196ef0ce
[^3] https://github.com/NixOS/nixpkgs/blob/nixos-26.05/pkgs/os-specific/linux/yt6801/default.nix
This commit is contained in:
Rudolf Tucek committed 2026-08-09 00:35:05 +02:00
1 parent 2e790b0a6b
commit a8e9cb2bc3
1 file changed
+4 -2
+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;
}