mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
26 lines
529 B
Nix
26 lines
529 B
Nix
{ 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 ];
|
|
};
|
|
}
|