1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 18:42:15 +00:00
nixpkgs/nixos/modules/programs/light.nix

28 lines
520 B
Nix
Raw Normal View History

2014-11-10 02:32:11 +00:00
{ 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.
2014-11-10 02:32:11 +00:00
'';
};
};
};
config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.light ];
services.udev.packages = [ pkgs.light ];
2014-11-10 02:32:11 +00:00
};
}