nix-files/hosts/common/programs/wvkbd.nix
2024-03-03 04:44:23 +00:00

24 lines
564 B
Nix

{ config, ... }:
let
cfg = config.sane.programs.wvkbd;
in
{
sane.programs.wvkbd = {
sandbox.method = "bwrap";
sandbox.whitelistWayland = true;
services.wvkbd = {
description = "wvkbd: wayland virtual keyboard";
after = [ "graphical-session.target" ];
wantedBy = [ "graphical-session.target" ];
serviceConfig = {
# --hidden: send SIGUSR2 to unhide
ExecStart = "${cfg.package}/bin/wvkbd-mobintl --hidden";
Type = "simple";
Restart = "always";
RestartSec = "3s";
};
};
};
}