## vim: set fenc=utf-8 ts=2 sw=0 sts=0 sr et si tw=0 fdm=marker fmr={{{,}}}:
##
## Hardware bundle
##

{ lib, ... }:

{
  imports =
  [
    ./bluetooth.nix
    ./controllers.nix
    ./graphics.nix
    ./graphictablets.nix
    ./gpuDrivers.nix
    ./gpuPassthrough.nix
    ./i2c.nix
    ./isLaptop.nix
    ./nvidia
    ./openrgb.nix
    ./piper.nix
  ]
  ++
  lib.optionals (lib.versionOlder lib.version "24.11pre")
  [
    (lib.mkAliasOptionModule [ "hardware" "graphics" "enable" ] [ "hardware" "opengl" "enable" ])
    (lib.mkAliasOptionModule [ "hardware" "graphics" "extraPackages" ] [ "hardware" "opengl" "extraPackages" ])
    (lib.mkAliasOptionModule [ "hardware" "graphics" "extraPackages32" ] [ "hardware" "opengl" "extraPackages32" ])
    (lib.mkAliasOptionModule [ "hardware" "graphics" "enable32Bit" ] [ "hardware" "opengl" "driSupport32Bit" ])
    (lib.mkAliasOptionModule [ "hardware" "graphics" "package" ] [ "hardware" "opengl" "package" ])
    (lib.mkAliasOptionModule [ "hardware" "graphics" "package32" ] [ "hardware" "opengl" "package32" ])
  ];
}
