s/forwardedPorts/forwardPorts/

This commit is contained in:
Astro 2021-04-08 02:30:50 +02:00
parent d820cdffd3
commit ec6d26ab08
4 changed files with 4 additions and 4 deletions

View File

@ -129,7 +129,7 @@ in
stubNets6 = ospfConf.stubnets-inet6;
};
forwardedPorts =
forwardPorts =
if ctPillar ? port-forwarding
then map ({ proto, port, to }: {
proto = proto;

View File

@ -157,7 +157,7 @@ let
type = types.bool;
default = config.site.hosts.${name}.interfaces ? core;
};
forwardedPorts = mkOption {
forwardPorts = mkOption {
type = with types; listOf (submodule { options = {
proto = mkOption {
type = types.enum [ "tcp" "udp" ];

View File

@ -94,6 +94,6 @@ in
enableIPv6 = true;
internalInterfaces = [ "core" ];
externalInterface = firstTunnel;
forwardPorts = config.site.hosts.${hostName}.forwardedPorts;
inherit (config.site.hosts.${hostName}) forwardPorts;
};
}

View File

@ -49,6 +49,6 @@ in
enable = true;
internalInterfaces = [ "core" ];
externalInterface = firstUpstreamInterface;
forwardPorts = config.site.hosts.${hostName}.forwardedPorts;
inherit (config.site.hosts.${hostName}) forwardPorts;
};
}