{ config, pkgs, lib, ... }: lib.mkIf (config.my.desktop == "kde") { systemd.user.services.kde-sync-xkbmap = { Unit = { Description = "Sync xkbmap with KDE keyboard layout"; PartOf = [ "graphical-session.target" ]; After = [ "graphical-session.target" ]; }; Service = { ExecStart = lib.getExe pkgs.kde-sync-xkbmap; Restart = "on-failure"; }; Install = { WantedBy = [ "plasma-workspace.target" ]; }; }; }