From 6e041b2d990841fb8b641efff7000443d57af101 Mon Sep 17 00:00:00 2001 From: Joakim Repomaa Date: Sun, 2 Feb 2025 22:15:54 +0200 Subject: [PATCH] apu: setup transport layout offloads for tailscale --- hosts/apu/configuration.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/hosts/apu/configuration.nix b/hosts/apu/configuration.nix index fd5ab08..8aaf3d1 100644 --- a/hosts/apu/configuration.nix +++ b/hosts/apu/configuration.nix @@ -2,7 +2,7 @@ # your system. Help is availanodev"; # https://search.nixos.org/options and in the NixOS manual (`nixos-help`). -{ lib, pkgs, ... }: +{ lib, pkgs, config, ... }: let services = { ssh = { tcp = [ 22 ]; }; @@ -205,6 +205,17 @@ in } // vlanNetworks; }; + services.networkd-dispatcher = { + enable = true; + rules."50-tailscale" = { + onState = [ "routable" ]; + script = '' + #!${pkgs.runtimeShell} + ${pkgs.ethtool}/bin/ethtool -K ${config.systemd.network.links."10-extern0".linkConfig.Name} rx-udp-gro-forwarding on rx-gro-list off + ''; + }; + }; + time.timeZone = "Europe/Helsinki"; users.users.jokke = {