mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
gammastep: wait on geoclue-agent when configured
This commit is contained in:
parent
389f2b2037
commit
c1addfdad3
1 changed files with 6 additions and 2 deletions
|
@ -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" ];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue