diff options
author | Bernardo Meurer <bernardo@meurer.org> | 2022-08-05 14:10:21 -0700 |
---|---|---|
committer | Bernardo Meurer <bernardo@meurer.org> | 2022-08-09 23:52:50 -0400 |
commit | ee0b8a7eaa96a0b4462870c2367aa96121d565bf (patch) | |
tree | 9b01f816c1e503e05644f9855c1a7ec7da819d4f /nixos | |
parent | 1bbd74314566048e540c17a7dc5fcf4722b8d349 (diff) |
nixos/geoclue2: wait for network to be up when wifi provider is enabled
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/desktops/geoclue2.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/desktops/geoclue2.nix b/nixos/modules/services/desktops/geoclue2.nix index 58bebd9bd46d6..a9712b962ffd9 100644 --- a/nixos/modules/services/desktops/geoclue2.nix +++ b/nixos/modules/services/desktops/geoclue2.nix @@ -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"; |