{ config, lib, pkgs, ... }: with lib; let cfg = config.local.desktop; in { config = mkIf cfg.enable { services.kdeconnect = { enable = true; }; systemd.user.services.xfconnect-indicator = { Install.WantedBy = ["default.target"]; Unit = { After = ["graphical-session.target" "kdeconnect.service"]; Requires = ["dbus.service"]; WantedBy = ["graphical-session.target"]; }; Service = { ExecStart = "${lib.getExe pkgs.local.xfconnect-indicator} -s"; TimeoutStartSec = "10s"; Restart = "on-failure"; RestartSec = "3s"; }; }; }; }