From dc101d9fef9c4c4f27251cdb500dd7b21aa3718f Mon Sep 17 00:00:00 2001 From: pennae Date: Mon, 17 Jan 2022 20:58:50 +0100 Subject: [PATCH] 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. --- nixos/modules/services/networking/mosquitto.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/mosquitto.nix b/nixos/modules/services/networking/mosquitto.nix index 2d498d4dbbcf..85d3ea5bd751 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";