From a77eb1da4078c414485db27161ba4b79f10bd17c Mon Sep 17 00:00:00 2001 From: Rudolf Tucek Date: Sun, 9 Aug 2026 01:30:25 +0200 Subject: [PATCH] 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; }