Files
nixos-hardware/tuxedo/infinitybook/pro14/gen9/default.nix
T
Rudolf Tucek a8e9cb2bc3 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
2026-08-09 00:35:05 +02:00

14 lines
330 B
Nix

{ lib, config, ... }:
{
imports = [
../../.
];
# Add Motorcomm YT6801 Driver if available and kernel version is below 7.0
boot.extraModulePackages =
with config.boot;
lib.lists.optional (
(lib.versionOlder kernelPackages.kernel.version "7.0") && (kernelPackages ? yt6801)
) kernelPackages.yt6801;
}