From 36f2bcd80c289b4d453a352935f4e3bcbfc02260 Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 15 Jul 2025 06:44:19 +0000 Subject: [PATCH] tailscale: log added/removed routes --- hosts/modules/roles/work/tailscale.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/modules/roles/work/tailscale.nix b/hosts/modules/roles/work/tailscale.nix index 108c5193b..1f0851660 100644 --- a/hosts/modules/roles/work/tailscale.nix +++ b/hosts/modules/roles/work/tailscale.nix @@ -127,13 +127,13 @@ in sleep 2 done for addr in ${lib.concatStringsSep " " routableSubnets}; do - ${ip} route add table main "$addr" dev tailscale0 scope global + (set -x ; ${ip} route add table main "$addr" dev tailscale0 scope global) done '') ]; systemd.services.tailscaled.preStop = '' for addr in ${lib.concatStringsSep " " routableSubnets}; do - ${ip} route del table main "$addr" dev tailscale0 scope global || true + (set -x ; ${ip} route del table main "$addr" dev tailscale0 scope global) || true done ''; # systemd.network.networks."50-tailscale" = {