summaryrefslogtreecommitdiff
path: root/home/desktop/connect.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/desktop/connect.nix')
-rw-r--r--home/desktop/connect.nix32
1 files changed, 32 insertions, 0 deletions
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";
+ };
+ };
+ };
+}