mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08: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:
committed by
Austin Horstman
parent
0f5908daf8
commit
46f93825af
@@ -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" ];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user