nixpkgs-suyu/nixos/modules/programs/light.nix

27 lines
482 B
Nix
Raw Normal View History

2014-11-10 03:32:11 +01: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 with setuid wrapper.
'';
};
};
};
config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.light ];
2017-01-29 12:45:43 +01:00
security.wrappers.light.source = "${pkgs.light.out}/bin/light";
2014-11-10 03:32:11 +01:00
};
}