diff options
Diffstat (limited to 'modules/wg')
| -rw-r--r-- | modules/wg/module.nix | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/modules/wg/module.nix b/modules/wg/module.nix index 1bb6f41..53ed2bb 100644 --- a/modules/wg/module.nix +++ b/modules/wg/module.nix @@ -18,20 +18,19 @@ name = "30-wg-${net.networkName}"; value = { matchConfig.Name = "wg-${net.networkName}"; - networkConfig = - { - Address = net.hosts.${currenthost}.address; - IPv6AcceptRA = false; # for now static IPv6 - } - // ( - if net.hosts.${currenthost}.endpoint.enable then - { - IPv4Forwarding = true; - IPv6Forwarding = true; - } - else - { } - ); + networkConfig = { + Address = net.hosts.${currenthost}.address; + IPv6AcceptRA = false; # for now static IPv6 + } + // ( + if net.hosts.${currenthost}.endpoint.enable then + { + IPv4Forwarding = true; + IPv6Forwarding = true; + } + else + { } + ); }; }) networks; |
