gammastep: wait on geoclue-agent when configured
This commit is contained in:
parent
389f2b2037
commit
c1addfdad3
|
@ -182,10 +182,14 @@ in {
|
||||||
settingsFormat.generate xdgConfigFilePath cfg.settings;
|
settingsFormat.generate xdgConfigFilePath cfg.settings;
|
||||||
|
|
||||||
systemd.user.services.${moduleName} = {
|
systemd.user.services.${moduleName} = {
|
||||||
Unit = {
|
Unit = let
|
||||||
|
geoclueAgentService =
|
||||||
|
lib.optional (cfg.provider == "geoclue2") "geoclue-agent.service";
|
||||||
|
in {
|
||||||
Description = "${programName} colour temperature adjuster";
|
Description = "${programName} colour temperature adjuster";
|
||||||
Documentation = serviceDocumentation;
|
Documentation = serviceDocumentation;
|
||||||
After = [ "graphical-session-pre.target" ];
|
After = [ "graphical-session-pre.target" ] ++ geoclueAgentService;
|
||||||
|
Wants = geoclueAgentService;
|
||||||
PartOf = [ "graphical-session.target" ];
|
PartOf = [ "graphical-session.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue