Task: moved hardware options into the niksos.hardware suboptions.

This commit is contained in:
Jurn Wubben 2025-07-09 00:22:25 +02:00
parent 0924f9c267
commit 678c3cb4f7
15 changed files with 99 additions and 82 deletions

View file

@ -1,5 +1,7 @@
{
hardware.enableRedistributableFirmware = true;
{lib, ...}: let
mkEO = lib.mkEnableOption;
in {
config.hardware.enableRedistributableFirmware = true;
imports = [
./bluetooth.nix
@ -9,4 +11,32 @@
./joycond.nix
./power.nix
];
options.niksos.hardware = {
bluetooth = mkEO "bluetooth related stuff.";
fingerprint = mkEO "fingerprint support.";
graphics = {
enable = mkEO "core graphics";
intel = mkEO "additional intel drivers";
nvidia = mkEO "additoinal nvidia drivers";
};
joycond = mkEO "support for nintendo switch controllers.";
portable = {
enable = mkEO "battery optimisers";
hyprland = let
gen = mode:
lib.mkOption {
default = "";
description = "Shell commands to run when switching to ${mode} mode.";
type = lib.types.lines;
};
in {
powerSaver = gen "power-saver";
performance = gen "performance";
};
};
};
}