at 18.09-beta 491 B view raw
1{ config, lib, pkgs, ... }: 2 3with lib; 4let 5 cfg = config.hardware.brightnessctl; 6in 7{ 8 9 options = { 10 11 hardware.brightnessctl = { 12 13 enable = mkOption { 14 default = false; 15 type = types.bool; 16 description = '' 17 Enable brightnessctl in userspace. 18 This will allow brightness control from users in the video group. 19 ''; 20 21 }; 22 }; 23 }; 24 25 26 config = mkIf cfg.enable { 27 services.udev.packages = with pkgs; [ brightnessctl ]; 28 }; 29 30}