Merge pull request #182672 from Stunkymonkey/murmur-openfirewall

services.murmur: add openFirewall option

authored by Jörg Thalheim and committed by GitHub 650cb466 73a475ae

+13
+13
nixos/modules/services/networking/murmur.nix
··· 59 description = "If enabled, start the Murmur Mumble server."; 60 }; 61 62 autobanAttempts = mkOption { 63 type = types.int; 64 default = 10; ··· 289 }; 290 users.groups.murmur = { 291 gid = config.ids.gids.murmur; 292 }; 293 294 systemd.services.murmur = {
··· 59 description = "If enabled, start the Murmur Mumble server."; 60 }; 61 62 + openFirewall = mkOption { 63 + type = types.bool; 64 + default = false; 65 + description = '' 66 + Open ports in the firewall for the Murmur Mumble server. 67 + ''; 68 + }; 69 + 70 autobanAttempts = mkOption { 71 type = types.int; 72 default = 10; ··· 297 }; 298 users.groups.murmur = { 299 gid = config.ids.gids.murmur; 300 + }; 301 + 302 + networking.firewall = mkIf cfg.openFirewall { 303 + allowedTCPPorts = [ cfg.port ]; 304 + allowedUDPPorts = [ cfg.port ]; 305 }; 306 307 systemd.services.murmur = {