blob: 58e45872fac87e081f83a38d6acf5166a309bfd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{ 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";
};
}
|