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 59 description = "If enabled, start the Murmur Mumble server."; 60 60 }; 61 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 + 62 70 autobanAttempts = mkOption { 63 71 type = types.int; 64 72 default = 10; ··· 289 297 }; 290 298 users.groups.murmur = { 291 299 gid = config.ids.gids.murmur; 300 + }; 301 + 302 + networking.firewall = mkIf cfg.openFirewall { 303 + allowedTCPPorts = [ cfg.port ]; 304 + allowedUDPPorts = [ cfg.port ]; 292 305 }; 293 306 294 307 systemd.services.murmur = {