nixpkgs/nixos/modules/programs/kbdlight.nix
Parnell Springmeyer c5f1f9a3b5
More mistake fixes
2017-01-29 05:45:43 -06:00

17 lines
314 B
Nix

{ 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 ];
security.wrappers.kbdlight.source = "${pkgs.kbdlight.out}/bin/kbdlight";
};
}