nixpkgs/nixos/modules/hardware/acpilight.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
530 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
let
cfg = config.hardware.acpilight;
in
{
options = {
hardware.acpilight = {
enable = lib.mkOption {
default = false;
type = lib.types.bool;
description = ''
Enable acpilight.
This will allow brightness control via xbacklight from users in the video group
'';
};
};
};
config = lib.mkIf cfg.enable {
2020-11-12 02:21:46 +00:00
environment.systemPackages = with pkgs; [ acpilight ];
services.udev.packages = with pkgs; [ acpilight ];
};
}