diff options
author | Alex Auvolat <alex@adnab.me> | 2022-11-22 16:22:05 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-11-22 16:22:05 +0100 |
commit | bedfae84247ca8c1f2a6c97d616b89a1ddc52a6a (patch) | |
tree | 38d5d491fccb5aa74f18d201c8beba1e7c826f0a | |
parent | 8d363d2e66a14bef88626efe133a9c9d9ff9041a (diff) | |
download | nixcfg-bedfae84247ca8c1f2a6c97d616b89a1ddc52a6a.tar.gz nixcfg-bedfae84247ca8c1f2a6c97d616b89a1ddc52a6a.zip |
Fix wg-quick MTU because it does bad stuff by default
-rw-r--r-- | nix/deuxfleurs.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nix/deuxfleurs.nix b/nix/deuxfleurs.nix index 5e87e5d..e2c1c17 100644 --- a/nix/deuxfleurs.nix +++ b/nix/deuxfleurs.nix @@ -214,6 +214,7 @@ in address = [ "${cfg.cluster_ip}/16" ]; listenPort = cfg.wireguard_port; privateKeyFile = "/var/lib/deuxfleurs/wireguard-keys/private"; + mtu = 1420; peers = map ({ publicKey, endpoint, IP, site_name, lan_endpoint, ... }: { publicKey = publicKey; allowedIPs = [ "${IP}/32" ]; |