ooknet/nixos/modules/host/hardware/features/backlight.nix

13 lines
225 B
Nix

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