From 078852c25531b4c82c0fbb9ff6f938cc9d936c79 Mon Sep 17 00:00:00 2001 From: Louis Pearson Date: Tue, 9 Jan 2024 15:43:21 -0700 Subject: [PATCH] fix: make network interfaces required by caddy with bindsto --- configuration.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 7370264..b73f8fa 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