refactor(hardware): major refactor of hardware modules

This commit is contained in:
ooks-io 2024-04-08 17:30:42 +12:00
parent 8f229750b0
commit 4a177d2122
18 changed files with 95 additions and 191 deletions

View file

@ -0,0 +1,19 @@
{ lib, config, ... }:
let
inherit (lib) types mkOption;
in
{
imports = [
./bluetooth
./backlight
./battery
];
options.systemModules.hardware.features = mkOption {
type = with types; listOf (enum ["bluetooth" "backlight" "battery"]);
default = [];
description = "What extra hardware feature system modules to use";
};
}