mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
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
This commit is contained in:
parent
228ba70048
commit
4f67d0e4f8
1 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue