mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-11-30 13:03:30 +01:00
14 lines
330 B
Nix
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;
|
|
}
|