mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
17 lines
283 B
Nix
17 lines
283 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.setuidPrograms = [ "kbdlight" ];
|
||
|
};
|
||
|
}
|