mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
19 lines
401 B
Nix
19 lines
401 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.programs.kbdlight;
|
|
|
|
in
|
|
{
|
|
options.programs.kbdlight.enable = lib.mkEnableOption "kbdlight";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.systemPackages = [ pkgs.kbdlight ];
|
|
security.wrappers.kbdlight =
|
|
{ setuid = true;
|
|
owner = "root";
|
|
group = "root";
|
|
source = "${pkgs.kbdlight.out}/bin/kbdlight";
|
|
};
|
|
};
|
|
}
|