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/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; } 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; }