This commit is contained in:
soraefir
2026-05-02 00:26:53 +02:00
parent 1248c258df
commit 32bbe70e2e

View File

@@ -21,11 +21,7 @@
'' else '''';
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;
}) config.syscfg.net.wg.server.peers
[]
else
[{
allowedIPs = [ "10.10.1.0/24" "fd10:10:10::0/64" ];