fix
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
postSetup = 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 wg0 \
|
||||||
peer "$(cat "$keyfile")" \
|
peer "$(cat "$keyfile")" \
|
||||||
allowed-ips 10.10.1.0/24,fd10:10:10::0/64
|
allowed-ips 10.10.1.0/24,fd10:10:10::0/64
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user