nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

nixos/serviio: add option to open firewall ports

I think we should have open firewall ports and let the user choose if they want to have these ports open or not. :D

authored by

n and committed by
GitHub
4f67d0e4 228ba700

+9 -1
+9 -1
nixos/modules/services/misc/serviio.nix
··· 39 39 ''; 40 40 }; 41 41 42 + openFirewall = lib.mkOption { 43 + type = lib.types.bool; 44 + default = false; 45 + description = '' 46 + Open ports in the firewall for the Serviio Media Server. 47 + ''; 48 + }; 49 + 42 50 dataDir = lib.mkOption { 43 51 type = lib.types.path; 44 52 default = "/var/lib/serviio"; ··· 84 76 85 77 users.groups.serviio = { }; 86 78 87 - networking.firewall = { 79 + networking.firewall = lib.mkIf cfg.openFirewall { 88 80 allowedTCPPorts = [ 89 81 8895 # serve UPnP responses 90 82 23423 # console