fix
This commit is contained in:
parent
b2f80659a7
commit
14cc3fb388
2 changed files with 4 additions and 4 deletions
|
@ -58,10 +58,10 @@ in
|
||||||
firewall = {
|
firewall = {
|
||||||
allowedTCPPorts =
|
allowedTCPPorts =
|
||||||
map (port: port.num)
|
map (port: port.num)
|
||||||
(filter (port: port.proto == "tcp") vars.ovenNat.forwardPorts);
|
(builtins.filter (port: port.proto == "tcp") vars.ovenNat.forwardPorts);
|
||||||
allowedUDPPorts =
|
allowedUDPPorts =
|
||||||
map (port: port.num)
|
map (port: port.num)
|
||||||
(filter (port: port.proto == "udp") vars.ovenNat.forwardPorts);
|
(builtins.filter (port: port.proto == "udp") vars.ovenNat.forwardPorts);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -41,10 +41,10 @@ in
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
networking.firewall.allowedTCPPorts =
|
networking.firewall.allowedTCPPorts =
|
||||||
map (port: port.num)
|
map (port: port.num)
|
||||||
(filter (port: port.proto == "tcp") vars.ovenNat.forwardPorts);
|
(builtins.filter (port: port.proto == "tcp") vars.ovenNat.forwardPorts);
|
||||||
networking.firewall.allowedUDPPorts =
|
networking.firewall.allowedUDPPorts =
|
||||||
map (port: port.num)
|
map (port: port.num)
|
||||||
(filter (port: port.proto == "udp") vars.ovenNat.forwardPorts);
|
(builtins.filter (port: port.proto == "udp") vars.ovenNat.forwardPorts);
|
||||||
|
|
||||||
# Copy the NixOS configuration file and link it from the resulting system
|
# Copy the NixOS configuration file and link it from the resulting system
|
||||||
# (/run/current-system/configuration.nix). This is useful in case you
|
# (/run/current-system/configuration.nix). This is useful in case you
|
||||||
|
|
Loading…
Reference in a new issue