From 665f3407faf393b459d9e36e733bf7945077ddaf Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Sat, 15 Apr 2023 20:47:14 +0100 Subject: [PATCH] nixos/l2mesh: Set VXLAN MTU --- nixos/modules/l2mesh.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/modules/l2mesh.nix b/nixos/modules/l2mesh.nix index 3213349..aa6fe7c 100644 --- a/nixos/modules/l2mesh.nix +++ b/nixos/modules/l2mesh.nix @@ -27,6 +27,11 @@ let Independent = true; }; }; + links."20-l2mesh-${name}" = { + matchConfig.Name = mesh.interface; + # TODO: ipv6? ipsec? + linkConfig.MTUBytes = "1450"; + }; networks."90-l2mesh-${name}" = { matchConfig.Name = mesh.interface; extraConfig = concatStringsSep "\n" (mapAttrsToList (n: peer: ''