2019-02-22 19:45:16 +00:00
|
|
|
{ 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 {
|
2020-11-12 02:21:46 +00:00
|
|
|
environment.systemPackages = with pkgs; [ acpilight ];
|
2019-02-22 19:45:16 +00:00
|
|
|
services.udev.packages = with pkgs; [ acpilight ];
|
|
|
|
};
|
|
|
|
}
|