Tailscale: Difference between revisions
mNo edit summary |
Optimize |
||
| Line 66: | Line 66: | ||
Supposing the network device you'll be using is called <code>eth0</code>, you can add the following to your <code>configuration.nix</code>:<syntaxhighlight lang="nixos"> | Supposing the network device you'll be using is called <code>eth0</code>, you can add the following to your <code>configuration.nix</code>:<syntaxhighlight lang="nixos"> | ||
services = { | services = { | ||
networkd-dispatcher = { | networkd-dispatcher = { | ||
| Line 78: | Line 72: | ||
onState = ["routable"]; | onState = ["routable"]; | ||
script = '' | script = '' | ||
${lib.getExe ethtool} -K eth0 rx-udp-gro-forwarding on rx-gro-list off | |||
''; | ''; | ||
}; | }; | ||