refactor(hardware): add options to module file

This commit is contained in:
ooks-io 2024-04-07 23:27:14 +12:00
parent a9f0e4317a
commit 776f44f0bb
4 changed files with 26 additions and 25 deletions

View file

@ -0,0 +1,16 @@
{ lib, config, ... }:
let
cfg = config.systemModules.hardware.backlight;
inherit (lib) mkIf mkEnableOption;
in
{
options.systemModules.hardware.backlight = {
enable = mkEnableOption "Enable backlight module";
};
config = mkIf cfg.enable {
hardware.brillo.enable = true;
};
}