refactor(systemModules): move hardware --> device/hardware, add function option
This commit is contained in:
parent
34ad7d3d61
commit
7679a227ac
17 changed files with 23 additions and 7 deletions
19
system/modules/device/hardware/features/default.nix
Normal file
19
system/modules/device/hardware/features/default.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue