mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
Massive refactoring in configurable modules
This commit is contained in:
commit
4319f5a3cc
14 changed files with 603 additions and 0 deletions
22
hardware.nix
Normal file
22
hardware.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ 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 "")
|
||||
# ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue