summaryrefslogtreecommitdiff
path: root/home/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'home/desktop')
-rw-r--r--home/desktop/connect.nix32
-rw-r--r--home/desktop/default.nix1
2 files changed, 33 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";
+ };
+ };
+ };
+}
diff --git a/home/desktop/default.nix b/home/desktop/default.nix
index 5f2d34e..e296b97 100644
--- a/home/desktop/default.nix
+++ b/home/desktop/default.nix
@@ -8,6 +8,7 @@
in {
imports = [
./athena.nix
+ ./connect.nix
./firefox.nix
./sway.nix
];