mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
16 lines
314 B
Nix
16 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";
|
|
};
|
|
}
|