mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
28 lines
520 B
Nix
28 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 ];
|
|
};
|
|
}
|