2020-04-24 23:36:52 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.hardware.brillo;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
hardware.brillo = {
|
2022-09-09 14:08:57 +00:00
|
|
|
enable = mkEnableOption (lib.mdDoc ''
|
2022-11-21 17:40:18 +00:00
|
|
|
brillo in userspace.
|
|
|
|
This will allow brightness control from users in the video group
|
2022-09-09 14:08:57 +00:00
|
|
|
'');
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.udev.packages = [ pkgs.brillo ];
|
|
|
|
environment.systemPackages = [ pkgs.brillo ];
|
|
|
|
};
|
|
|
|
}
|