Tailscale: Difference between revisions

Tboston (talk | contribs)
mNo edit summary
Sandro (talk | contribs)
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">
environment.systemPackages = with pkgs; [
...
ethtool
networkd-dispatcher
];
...
services = {
services = {
   networkd-dispatcher = {
   networkd-dispatcher = {
Line 78: Line 72:
       onState = ["routable"];
       onState = ["routable"];
       script = ''
       script = ''
         #!${pkgs.runtimeShell}  
         ${lib.getExe ethtool} -K eth0 rx-udp-gro-forwarding on rx-gro-list off
        ethtool -K eth0 rx-udp-gro-forwarding on rx-gro-list off
        exit 0
       '';
       '';
     };
     };