summary refs log tree commit diff
path: root/nixos/modules/services/networking/mosquitto.nix
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2022-01-17 20:58:50 +0100
committerpennae <github@quasiparticle.net>2022-01-17 20:58:50 +0100
commitdc101d9fef9c4c4f27251cdb500dd7b21aa3718f (patch)
tree4f87e7d1e463fa1d159f71b78de7de34fa9c17e1 /nixos/modules/services/networking/mosquitto.nix
parent4f0b53702b8fdeea4c68fe34bdf9ce90817910fb (diff)
downloadnixpkgs-dc101d9fef9c4c4f27251cdb500dd7b21aa3718f.tar
nixpkgs-dc101d9fef9c4c4f27251cdb500dd7b21aa3718f.tar.gz
nixpkgs-dc101d9fef9c4c4f27251cdb500dd7b21aa3718f.tar.bz2
nixpkgs-dc101d9fef9c4c4f27251cdb500dd7b21aa3718f.tar.lz
nixpkgs-dc101d9fef9c4c4f27251cdb500dd7b21aa3718f.tar.xz
nixpkgs-dc101d9fef9c4c4f27251cdb500dd7b21aa3718f.tar.zst
nixpkgs-dc101d9fef9c4c4f27251cdb500dd7b21aa3718f.zip
nixos/mosquitto: wait for network-online.target, not network.target
network.target is reached earlier, but with much fewer services
available. DNS is likely to be not functional before
network-online.target, so waiting for that seems better for that reason
alone. the existing backends for network-online.target all seem to do
reasonable things (wait until all links are in *some* stable state), so
we shouldn't lose anything from waiting.
Diffstat (limited to 'nixos/modules/services/networking/mosquitto.nix')
-rw-r--r--nixos/modules/services/networking/mosquitto.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/mosquitto.nix b/nixos/modules/services/networking/mosquitto.nix
index 2d498d4dbbc..85d3ea5bd75 100644
--- a/nixos/modules/services/networking/mosquitto.nix
+++ b/nixos/modules/services/networking/mosquitto.nix
@@ -556,7 +556,7 @@ in
     systemd.services.mosquitto = {
       description = "Mosquitto MQTT Broker Daemon";
       wantedBy = [ "multi-user.target" ];
-      after = [ "network.target" ];
+      after = [ "network-online.target" ];
       serviceConfig = {
         Type = "notify";
         NotifyAccess = "main";