This commit is contained in:
soraefir
2026-05-02 00:04:02 +02:00
parent 7b3d80c86e
commit d68c26a4eb

View File

@@ -13,8 +13,9 @@
peers =
if config.syscfg.net.wg.server.enable then
map(secretName:{
name = "${secretName}";
allowedIPs = [ "10.10.1.0/24" "fd10:10:10::0/64" ];
publicKey = config.sops.secrets."${secretName}_wg_pub".path;
publicKeyFile = config.sops.secrets."${secretName}_wg_pub".path;
}) config.syscfg.net.wg.server.peers
else
[{