aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-11-22 16:22:05 +0100
committerAlex Auvolat <alex@adnab.me>2022-11-22 16:22:05 +0100
commitbedfae84247ca8c1f2a6c97d616b89a1ddc52a6a (patch)
tree38d5d491fccb5aa74f18d201c8beba1e7c826f0a /nix
parent8d363d2e66a14bef88626efe133a9c9d9ff9041a (diff)
downloadnixcfg-bedfae84247ca8c1f2a6c97d616b89a1ddc52a6a.tar.gz
nixcfg-bedfae84247ca8c1f2a6c97d616b89a1ddc52a6a.zip
Fix wg-quick MTU because it does bad stuff by default
Diffstat (limited to 'nix')
-rw-r--r--nix/deuxfleurs.nix1
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" ];