diff --git a/configuration.nix b/configuration.nix index c497f3d..7370264 100644 --- a/configuration.nix +++ b/configuration.nix @@ -487,7 +487,8 @@ reverse_proxy localhost:8989 ''; }; - systemd.services."caddy.service" = { + # patch the caddy service to wait for the tailscale interface before starting + systemd.services."caddy" = { requires = [ "tailscaled.service" ]; after = [ "sys-subsystem-net-devices-tailscale0.device" "tailscaled.service" ]; };