depot/third_party/nixpkgs/nixos/modules/hardware/acpilight.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

23 lines
530 B
Nix

{ 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 {
environment.systemPackages = with pkgs; [ acpilight ];
services.udev.packages = with pkgs; [ acpilight ];
};
}