1 { config, lib, pkgs, ... }:
3 cfg = config.hardware.acpilight;
8 enable = lib.mkOption {
10 type = lib.types.bool;
13 This will allow brightness control via xbacklight from users in the video group
19 config = lib.mkIf cfg.enable {
20 environment.systemPackages = with pkgs; [ acpilight ];
21 services.udev.packages = with pkgs; [ acpilight ];