summary refs log blame commit diff
path: root/nixos/modules/hardware/acpilight.nix
blob: 2de448a265c79e86ee894f133641ce32150519a1 (plain) (tree)




















                                                                                         
                                                          


                                                      
{ config, lib, pkgs, ... }:

with lib;
let
  cfg = config.hardware.acpilight;
in
{
  options = {
    hardware.acpilight = {
      enable = mkOption {
        default = false;
        type = types.bool;
        description = ''
          Enable acpilight.
          This will allow brightness control via xbacklight from users in the video group
        '';
      };
    };
  };

  config = mkIf cfg.enable {
    environment.systemPackages = with pkgs; [ acpilight ];
    services.udev.packages = with pkgs; [ acpilight ];
  };
}