nixos/geoclue2: wait for network to be up when wifi provider is enabled

This commit is contained in:
Bernardo Meurer 2022-08-05 14:10:21 -07:00
parent 1bbd743145
commit ee0b8a7eaa
No known key found for this signature in database
GPG key ID: F4C0D53B8D14C246

View file

@ -216,6 +216,7 @@ in
# we can't be part of a system service, and the agent should
# be okay with the main service coming and going
wantedBy = [ "default.target" ];
after = lib.optionals cfg.enableWifi [ "network-online.target" ];
unitConfig.ConditionUser = "!@system";
serviceConfig = {
Type = "exec";