From 60b23897bf245325af10baad7b7b8aaaa49b269a Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Fri, 10 Jan 2025 15:50:29 -0500 Subject: [PATCH] Syncthing tray fix --- home-manager/machines/crash/home.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/home-manager/machines/crash/home.nix b/home-manager/machines/crash/home.nix index 29d578f..153c8ce 100644 --- a/home-manager/machines/crash/home.nix +++ b/home-manager/machines/crash/home.nix @@ -42,10 +42,15 @@ # Machine specific configuration services.emacs.defaultEditor = true; - systemd.user.targets.tray = { - Unit = { - Description = "Home Manager System Tray"; - Requires = [ "graphical-session-pre.target" ]; + systemd.user = { + targets.tray = { + Unit = { + Description = "Home Manager System Tray"; + Requires = [ "graphical-session.target" ]; + }; + }; + services.syncthingtray = { + Service.ExecStart = lib.mkForce "${pkgs.syncthingtray}/bin/syncthingtray --wait"; }; }; }