This commit is contained in:
soraefir
2026-05-02 00:25:47 +02:00
parent f852ed7662
commit 1248c258df

View File

@@ -13,7 +13,7 @@
postSetup = if config.syscfg.net.wg.server.enable then ''
for keyfile in /run/secrets/*_wg_pub; do
if [ -f "$keyfile" ]; then
${pkgs.wireguard-tools}/bin/wg set %i \
${pkgs.wireguard-tools}/bin/wg set wg0 \
peer "$(cat "$keyfile")" \
allowed-ips 10.10.1.0/24,fd10:10:10::0/64
fi