diff --git a/configuration.nix b/configuration.nix index 7370264..a10214c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -490,7 +490,8 @@ # 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" ]; + bindsTo = [ "sys-subsystem-net-devices-tailscale0.device" "sys-subsystem-net-devices-enp3s0.device" ]; + after = [ "sys-subsystem-net-devices-tailscale0.device" "sys-subsystem-net-devices-enp3s0.device" "tailscaled.service" ]; }; # Headscale for access to the network while away from home