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

13 lines
221 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;
};
}