nixos-config/modules/server/network.nix

10 lines
196 B
Nix

{ lib, config, ... }:
with lib;
{
config = {
networking.firewall.allowedTCPPorts = [
(mkIf config.services.nginx.enable 80)
(mkIf config.services.nginx.enable 443)
];
};
}