diff --git a/lib/modules/hardware.nix b/lib/modules/hardware.nix new file mode 100644 index 00000000..b7a5e40a --- /dev/null +++ b/lib/modules/hardware.nix @@ -0,0 +1,43 @@ +{ lib, ... }: + let + inherit (lib) + mkOption + types + ; + in { + options = { + valhalla = { + hardware = { + components = mkOption { + type = types.listOf types.str; + description = "The names of the hardware components of the computer."; + default = []; + }; + + eyeX = mkOption { + type = types.bool; + description = "A value indicating whether a Tobii EyeX device is present."; + default = false; + }; + + amdCPU = mkOption { + type = types.bool; + description = "A value indicating whether an AMD CPU is present."; + default = false; + }; + + nvidiaGPU = mkOption { + type = types.bool; + description = "A value indicating whether an NVIDIA GPU is present."; + default = false; + }; + + elgatoWave = mkOption { + type = types.bool; + description = "A value indicating whether an Elgato Wave device is present."; + default = false; + }; + }; + }; + }; + } diff --git a/lib/modules/valhalla.nix b/lib/modules/valhalla.nix index e5d46b21..0932adf8 100644 --- a/lib/modules/valhalla.nix +++ b/lib/modules/valhalla.nix @@ -7,6 +7,7 @@ in { imports = [ ./git.nix + ./hardware.nix ./i18n.nix ./partition.nix ./software.nix diff --git a/profiles/DerGeret/config.nix b/profiles/DerGeret/config.nix index 09ace8cc..396f8863 100644 --- a/profiles/DerGeret/config.nix +++ b/profiles/DerGeret/config.nix @@ -24,6 +24,17 @@ keepExisting = true; }; }; + + hardware = { + components = [ + "ROG Zenith Extreme Alpha" + ]; + + eyeX = true; + amdCPU = true; + nvidiaGPU = true; + elgatoWave = true; + }; }; }; }