If you’re going to enable systemd-networkd
, I would recommend ensuring that NetworkManager
is disabled and that you don’t have any other services depending specifically on functionality it provides.
An easier solution might be to instead make use of NetworkManager
's equivalent, called networkmanager-wait-online.service
. You would only need to edit the Caddy unit definition, rather than diverting your system configuration from the default.