1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-06 09:01:04 +01:00

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.
This commit is contained in:
Evyatar Stalinsky 2025-04-05 13:33:12 +03:00 committed by Austin Horstman
parent 0f5908daf8
commit 46f93825af

View file

@ -189,8 +189,10 @@ in {
in {
Description = "${programName} colour temperature adjuster";
Documentation = serviceDocumentation;
After = [ "graphical-session.target" ] ++ geoclueAgentService;
After = [ "graphical-session.target" ]
++ (lib.optional cfg.tray "tray.target") ++ geoclueAgentService;
Wants = geoclueAgentService;
Requires = lib.mkIf cfg.tray "tray.target";
PartOf = [ "graphical-session.target" ];
};