8 cfg = config.programs.wshowkeys;
12 programs.wshowkeys = {
13 enable = lib.mkEnableOption ''
14 wshowkeys (displays keypresses on screen on supported Wayland
15 compositors). It requires root permissions to read input events, but
16 these permissions are dropped after startup'';
17 package = lib.mkPackageOption pkgs "wshowkeys" { };
21 config = lib.mkIf cfg.enable {
22 security.wrappers.wshowkeys = {
26 source = lib.getExe cfg.package;
30 meta.maintainers = with lib.maintainers; [ primeos ];