nixpkgs/nixos/modules/programs/kbdlight.nix

17 lines
283 B
Nix
Raw Normal View History

{ 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 05:48:03 +01:00
security.setuidPrograms = [ "kbdlight" ];
};
}