From a8e9cb2bc30abdafbd752bf357c0accfce4a6401 Mon Sep 17 00:00:00 2001 From: Rudolf Tucek Date: Sun, 9 Aug 2026 00:35:05 +0200 Subject: [PATCH 1/2] 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 --- tuxedo/infinitybook/pro14/gen9/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tuxedo/infinitybook/pro14/gen9/default.nix b/tuxedo/infinitybook/pro14/gen9/default.nix index 5dc50911..41e53a3e 100644 --- a/tuxedo/infinitybook/pro14/gen9/default.nix +++ b/tuxedo/infinitybook/pro14/gen9/default.nix @@ -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; } From a77eb1da4078c414485db27161ba4b79f10bd17c Mon Sep 17 00:00:00 2001 From: Rudolf Tucek Date: Sun, 9 Aug 2026 01:30:25 +0200 Subject: [PATCH 2/2] Apply conditional kernel loading to other devices too --- tuxedo/infinitybook/pro14/gen10/default.nix | 6 ++++-- tuxedo/infinitybook/pro15/gen10/default.nix | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tuxedo/infinitybook/pro14/gen10/default.nix b/tuxedo/infinitybook/pro14/gen10/default.nix index 5dc50911..41e53a3e 100644 --- a/tuxedo/infinitybook/pro14/gen10/default.nix +++ b/tuxedo/infinitybook/pro14/gen10/default.nix @@ -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; } diff --git a/tuxedo/infinitybook/pro15/gen10/default.nix b/tuxedo/infinitybook/pro15/gen10/default.nix index 5dc50911..41e53a3e 100644 --- a/tuxedo/infinitybook/pro15/gen10/default.nix +++ b/tuxedo/infinitybook/pro15/gen10/default.nix @@ -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; }