Files
nixpkgs/nixos/modules/hardware/acpilight.nix
Dominik Xaver Hörl d9106a08b3 nixos/hardware.acpilight: improve the description
Clarify that it works without an X server and streamline the description.
2026-03-06 08:38:30 +01:00

29 lines
651 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.hardware.acpilight;
in
{
options = {
hardware.acpilight = {
enable = lib.mkOption {
default = false;
type = lib.types.bool;
description = ''
Whether to enable acpilight.
This will allow brightness control via the supplied xbacklight binary from users in the video group. Contrary to what the name suggests, this *will* work without a running X server.
'';
};
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [ acpilight ];
services.udev.packages = with pkgs; [ acpilight ];
};
}