From 66a6ec65f84255b3defb67ff45af86c844dd451b Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Thu, 3 Apr 2025 17:03:55 -0500 Subject: [PATCH] cliphist: use configured systemdTargets throughout service (#6751) Was running into issues with it not starting properly. This fixed my issue. --- modules/services/cliphist.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/services/cliphist.nix b/modules/services/cliphist.nix index e7dc8e998..e04dd3bd0 100644 --- a/modules/services/cliphist.nix +++ b/modules/services/cliphist.nix @@ -61,7 +61,8 @@ in { systemd.user.services.cliphist = { Unit = { Description = "Clipboard management daemon"; - PartOf = [ "graphical-session.target" ]; + PartOf = lib.toList cfg.systemdTargets; + After = lib.toList cfg.systemdTargets; }; Service = { @@ -77,7 +78,8 @@ in { systemd.user.services.cliphist-images = lib.mkIf cfg.allowImages { Unit = { Description = "Clipboard management daemon - images"; - PartOf = [ "graphical-session.target" ]; + PartOf = lib.toList cfg.systemdTargets; + After = lib.toList cfg.systemdTargets; }; Service = {