mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 09:47:52 +00:00
22 lines
587 B
Nix
22 lines
587 B
Nix
{ config, pkgs, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.aviallon.hardware;
|
|
desktopCfg = config.aviallon.desktop;
|
|
in
|
|
{
|
|
options.aviallon.hardware = {
|
|
gpuVendor = mkOption {
|
|
default = null;
|
|
example = "amd";
|
|
description = "Enable GPU vendor specific options";
|
|
type = types.enum [ "amd" "nvidia" "intel" ];
|
|
};
|
|
};
|
|
|
|
# imports = [
|
|
# (if (cfg.gpuVendor == "amd") then ./hardware/amd.nix else "")
|
|
# (if (cfg.gpuVendor == "nvidia") then ./hardware/nvidia.nix else "")
|
|
# (if (cfg.gpuVendor == "intel") then ./hardware/intel.nix else "")
|
|
# ];
|
|
}
|