From 6026e064fdd3f75527f69e2b803fc51250f8b0fb Mon Sep 17 00:00:00 2001 From: Joakim Repomaa Date: Sun, 2 Feb 2025 22:48:09 +0200 Subject: [PATCH] freun.dev: setup transport layout offloads for tailscale --- hosts/freun.dev/configuration.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/freun.dev/configuration.nix b/hosts/freun.dev/configuration.nix index c3a244a..ec22cee 100644 --- a/hosts/freun.dev/configuration.nix +++ b/hosts/freun.dev/configuration.nix @@ -71,6 +71,17 @@ }; }; + services.networkd-dispatcher = { + enable = true; + rules."50-tailscale" = { + onState = [ "routable" ]; + script = '' + #!${pkgs.runtimeShell} + ${pkgs.ethtool}/bin/ethtool -K ${config.systemd.network.networks.static.name} rx-udp-gro-forwarding on rx-gro-list off + ''; + }; + }; + # Set your time zone. time.timeZone = "Europe/Helsinki";