From c466f96ee7d2c797268ee55eec66d11ac3f231e9 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sat, 14 Mar 2026 01:00:58 -0600 Subject: home/desktop: enable kdeconnectd, xfconnect-indicator --- home/desktop/connect.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 home/desktop/connect.nix (limited to 'home/desktop/connect.nix') diff --git a/home/desktop/connect.nix b/home/desktop/connect.nix new file mode 100644 index 0000000..50b5934 --- /dev/null +++ b/home/desktop/connect.nix @@ -0,0 +1,32 @@ +{ + 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"; + }; + }; + }; +} -- cgit v1.2.3