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
1 changed files with 6 additions and 2 deletions

View File

@ -182,10 +182,14 @@ in {
settingsFormat.generate xdgConfigFilePath cfg.settings;
systemd.user.services.${moduleName} = {
Unit = {
Unit = let
geoclueAgentService =
lib.optional (cfg.provider == "geoclue2") "geoclue-agent.service";
in {
Description = "${programName} colour temperature adjuster";
Documentation = serviceDocumentation;
After = [ "graphical-session-pre.target" ];
After = [ "graphical-session-pre.target" ] ++ geoclueAgentService;
Wants = geoclueAgentService;
PartOf = [ "graphical-session.target" ];
};