19 lines
328 B
Nix
19 lines
328 B
Nix
{ lib, ... }:
|
|
|
|
let
|
|
inherit (lib) types mkOption;
|
|
in
|
|
|
|
{
|
|
imports = [
|
|
./amd.nix
|
|
./intel.nix
|
|
./nvidia.nix
|
|
];
|
|
|
|
options.systemModules.host.hardware.gpu.type = mkOption {
|
|
type = with types; nullOr (enum ["intel" "amd" "nvidia"]);
|
|
default = null;
|
|
description = "Type of gpu system module to use";
|
|
};
|
|
}
|