02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
27 lines
530 B
Nix
27 lines
530 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.programs.light;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
programs.light = {
|
|
enable = mkOption {
|
|
default = false;
|
|
type = types.bool;
|
|
description = lib.mdDoc ''
|
|
Whether to install Light backlight control command
|
|
and udev rules granting access to members of the "video" group.
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = [ pkgs.light ];
|
|
services.udev.packages = [ pkgs.light ];
|
|
};
|
|
}
|