Skip to content

Commit 46f9382

Browse files
evyatark2khaneliman
authored andcommitted
redshift/gammastep: fix tray.target dependency
Fix a missing dependency for `tray.target` in `redshift/gammastep` module when the tray feature is enabled. This caused a race condition that could result in the redshift/gammastep systemd user unit failing because the tray provider (e.g. waybar) isn't ready yet.
1 parent 0f5908d commit 46f9382

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/services/redshift-gammastep/lib/options.nix

+3-1
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,10 @@ in {
189189
in {
190190
Description = "${programName} colour temperature adjuster";
191191
Documentation = serviceDocumentation;
192-
After = [ "graphical-session.target" ] ++ geoclueAgentService;
192+
After = [ "graphical-session.target" ]
193+
++ (lib.optional cfg.tray "tray.target") ++ geoclueAgentService;
193194
Wants = geoclueAgentService;
195+
Requires = lib.mkIf cfg.tray "tray.target";
194196
PartOf = [ "graphical-session.target" ];
195197
};
196198

0 commit comments

Comments
 (0)