From 11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 23 Jan 2025 14:37:58 +0100 Subject: ... --- accounts/gkleen@sif/systemd.nix | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) (limited to 'accounts/gkleen@sif/systemd.nix') diff --git a/accounts/gkleen@sif/systemd.nix b/accounts/gkleen@sif/systemd.nix index 34f52172..bce2f4cd 100644 --- a/accounts/gkleen@sif/systemd.nix +++ b/accounts/gkleen@sif/systemd.nix @@ -123,7 +123,8 @@ in { }; emacs = { Unit = { - After = ["graphical-session-pre.target"]; + After = [ "graphical-session.target" ]; + BindsTo = [ "graphical-session.target" ]; }; }; keepassxc = { @@ -135,8 +136,8 @@ in { Environment = [ "QT_QPA_PLATFORM=wayland" ]; }; Unit = { - Requires = ["graphical-session-pre.target"]; - After = ["graphical-session-pre.target"]; + After = [ "graphical-session.target" ]; + BindsTo = [ "graphical-session.target" ]; }; }; mpris-proxy = { @@ -184,8 +185,8 @@ in { WantedBy = ["graphical-session.target"]; }; Unit = { - Requires = ["graphical-session-pre.target"]; - After = ["graphical-session-pre.target"]; + After = [ "graphical-session.target" ]; + PartOf = [ "graphical-session.target" ]; }; Service = { ExecStart = lib.getExe pkgs.psi-notify; @@ -198,6 +199,7 @@ in { gtklock = { Unit = { Requisite = ["graphical-session.target"]; + After = [ "graphical-session.target" ]; PartOf = ["graphical-session.target"]; }; Service = { @@ -304,8 +306,8 @@ in { WantedBy = ["graphical-session.target"]; }; Unit = { - BindsTo = ["graphical-session-pre.target"]; - After = ["graphical-session-pre.target"]; + After = [ "graphical-session.target" ]; + PartOf = [ "graphical-session.target" ]; }; Service = { ExecStart = lib.getExe cfg.programs.wpaperd.package; @@ -314,6 +316,17 @@ in { RestartSec = "2s"; }; }; + xembed-sni-proxy = { + Unit = { + BindsTo = ["xwayland-satellite.service"]; + After = ["xwayland-satellite.service"]; + }; + }; + poweralertd = { + Unit = { + After = ["graphical-session.target"]; + }; + }; } // listToAttrs (map ({host, port}: nameValuePair "proxy-to-autossh-socks@${toString port}" { Unit = { Requires = ["autossh-socks@${host}:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"]; @@ -364,6 +377,9 @@ in { }; tray = { Unit = { + PartOf = [ "graphical-session.target" ]; + Requires = [ "waybar.service" ]; + After = [ "graphical-session.target" "waybar.service" ]; Wants = ["blueman-applet.service" "udiskie.service" "network-manager-applet.service"]; }; }; -- cgit v1.2.3