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

This commit is contained in:
h7x4
2025-10-09 05:12:25 +00:00
committed by GitHub

View File

@@ -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