nixos-module/network: enable forwarding
This commit is contained in:
parent
8807ce4435
commit
11d6a80317
|
@ -33,9 +33,12 @@ in
|
||||||
builtins.mapAttrs (ifName: { gw4, gw6, ... }:
|
builtins.mapAttrs (ifName: { gw4, gw6, ... }:
|
||||||
let
|
let
|
||||||
netConfig = config.site.net.${ifName};
|
netConfig = config.site.net.${ifName};
|
||||||
in {
|
in rec {
|
||||||
matchConfig.Name = ifName;
|
matchConfig.Name = ifName;
|
||||||
|
|
||||||
|
networkConfig.IPForward =
|
||||||
|
(builtins.length addresses) > 0;
|
||||||
|
|
||||||
addresses =
|
addresses =
|
||||||
let
|
let
|
||||||
address = netConfig.hosts4.${hostName};
|
address = netConfig.hosts4.${hostName};
|
||||||
|
|
Loading…
Reference in New Issue