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:
parent
0f5908daf8
commit
46f93825af
1 changed files with 3 additions and 1 deletions
|
|
@ -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" ];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue