Unverified Commit 595dc973 authored by h7x4's avatar h7x4 Committed by GitHub
Browse files

nixos/serviio: add option to open firewall ports (#448271)

parents a3ebbb9c 4f67d0e4
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -39,6 +39,14 @@ in
        '';
      };

      openFirewall = lib.mkOption {
        type = lib.types.bool;
        default = false;
        description = ''
          Open ports in the firewall for the Serviio Media Server.
        '';
      };

      dataDir = lib.mkOption {
        type = lib.types.path;
        default = "/var/lib/serviio";
@@ -76,7 +84,7 @@ in

    users.groups.serviio = { };

    networking.firewall = {
    networking.firewall = lib.mkIf cfg.openFirewall {
      allowedTCPPorts = [
        8895 # serve UPnP responses
        23423 # console