nixos-config/modules/server/network.nix

11 lines
196 B
Nix
Raw Normal View History

2023-11-12 00:40:26 +01:00
{ lib, config, ... }:
with lib;
{
config = {
networking.firewall.allowedTCPPorts = [
(mkIf config.services.nginx.enable 80)
(mkIf config.services.nginx.enable 443)
];
};
}