8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
27 lines
520 B
Nix
27 lines
520 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.programs.light;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
programs.light = {
|
|
enable = mkOption {
|
|
default = false;
|
|
type = types.bool;
|
|
description = ''
|
|
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 ];
|
|
};
|
|
}
|