ooknet/system/modules/host/hardware/features/backlight/default.nix
ooks-io 7a74befde3 feat(systemModules:host): add initial host configuration module
used to define general host configuration, including:

- hardware
- name
- admin
- type
- role
2024-04-29 18:48:18 +12:00

13 lines
228 B
Nix

{ lib, config, ... }:
let
features = config.systemModules.host.hardware.features;
inherit (lib) mkIf;
inherit (builtins) elem;
in
{
config = mkIf (elem "backlight" features) {
hardware.brillo.enable = true;
};
}