2015-05-10 11:57:15 -06:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.kbdlight;
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.programs.kbdlight.enable = mkEnableOption "kbdlight";
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [ pkgs.kbdlight ];
|
2017-01-29 04:45:43 -07:00
|
|
|
security.wrappers.kbdlight.source = "${pkgs.kbdlight.out}/bin/kbdlight";
|
2015-05-10 11:57:15 -06:00
|
|
|
};
|
|
|
|
}
|