mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
1b7ce4c6d5
* brightnessctl: init at 0.3.2 * Revised PR
31 lines
491 B
Nix
31 lines
491 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.hardware.brightnessctl;
|
|
in
|
|
{
|
|
|
|
options = {
|
|
|
|
hardware.brightnessctl = {
|
|
|
|
enable = mkOption {
|
|
default = false;
|
|
type = types.bool;
|
|
description = ''
|
|
Enable brightnessctl in userspace.
|
|
This will allow brightness control from users in the video group.
|
|
'';
|
|
|
|
};
|
|
};
|
|
};
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
services.udev.packages = with pkgs; [ brightnessctl ];
|
|
};
|
|
|
|
}
|