From fecaee1a8314762ce80a2ada611b50f139c41aed 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..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