This commit is contained in:
soraefir
2026-05-02 00:21:57 +02:00
parent 4729a82990
commit f852ed7662

View File

@@ -10,7 +10,7 @@
config.sops.secrets."${config.syscfg.hostname}_wg_priv".path; config.sops.secrets."${config.syscfg.hostname}_wg_priv".path;
listenPort = 1515; listenPort = 1515;
mtu = 1340; mtu = 1340;
postUp = if config.syscfg.net.wg.server.enable then '' postSetup = if config.syscfg.net.wg.server.enable then ''
for keyfile in /run/secrets/*_wg_pub; do for keyfile in /run/secrets/*_wg_pub; do
if [ -f "$keyfile" ]; then if [ -f "$keyfile" ]; then
${pkgs.wireguard-tools}/bin/wg set %i \ ${pkgs.wireguard-tools}/bin/wg set %i \