From f28a000e08dbf38f6c9d9580b4d444b43c0a4465 Mon Sep 17 00:00:00 2001 From: randogoth Date: Sat, 7 Feb 2026 20:05:35 +0200 Subject: [PATCH] Fix awk path in tailscale offload tune --- modules/services/tailscale.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/tailscale.nix b/modules/services/tailscale.nix index e9771aa..7c965a6 100644 --- a/modules/services/tailscale.nix +++ b/modules/services/tailscale.nix @@ -18,7 +18,7 @@ serviceConfig = { Type = "oneshot"; ExecStart = '' - /bin/sh -c 'DEV="$(${pkgs.iproute2}/bin/ip -o route get 8.8.8.8 2>/dev/null | ${pkgs.coreutils}/bin/awk "{for (i=1;i<=NF;i++) if (\\$i==\\\"dev\\\") {print \\$(i+1); exit}}")"; if [ -n "$DEV" ]; then ${pkgs.ethtool}/bin/ethtool -K "$DEV" rx-udp-gro-forwarding on rx-gro-list off || true; fi' + /bin/sh -c 'DEV="$(${pkgs.iproute2}/bin/ip -o route get 8.8.8.8 2>/dev/null | ${pkgs.gawk}/bin/awk "{for (i=1;i<=NF;i++) if (\\$i==\\\"dev\\\") {print \\$(i+1); exit}}")"; if [ -n "$DEV" ]; then ${pkgs.ethtool}/bin/ethtool -K "$DEV" rx-udp-gro-forwarding on rx-gro-list off || true; fi' ''; }; wantedBy = [ "multi-user.target" ];