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