1{ config, lib, pkgs, ... }:
2
3with lib;
4
5let
6 cfg = config.programs.wshowkeys;
7in {
8 meta.maintainers = with maintainers; [ primeos ];
9
10 options = {
11 programs.wshowkeys = {
12 enable = mkEnableOption ''
13 wshowkeys (displays keypresses on screen on supported Wayland
14 compositors). It requires root permissions to read input events, but
15 these permissions are dropped after startup'';
16 };
17 };
18
19 config = mkIf cfg.enable {
20 security.wrappers.wshowkeys.source = "${pkgs.wshowkeys}/bin/wshowkeys";
21 };
22}