gammastep: wait on geoclue-agent when configured

This commit is contained in:
Bernardo Meurer 2022-08-05 13:55:25 -07:00 committed by Robert Helgesson
parent 389f2b2037
commit c1addfdad3
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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" ];
}; };