diff options
author | Ryan Horiguchi <ryan.horiguchi@gmail.com> | 2022-08-12 00:34:23 +0200 |
---|---|---|
committer | Winter <winter@winter.cafe> | 2022-08-11 22:49:50 -0400 |
commit | feba3403147903d848f5e76f30315f4f04fb280d (patch) | |
tree | 521e98a25ae5b648fa7d502dfcedd239ec2a17ef /nixos | |
parent | bd2c13dc11cdc7125778f38573cf57b321244a24 (diff) |
nixos/tautulli: add option to open firewall
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/tautulli.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/tautulli.nix b/nixos/modules/services/misc/tautulli.nix index 3f6633c9a5701..20d972b757a97 100644 --- a/nixos/modules/services/misc/tautulli.nix +++ b/nixos/modules/services/misc/tautulli.nix @@ -32,6 +32,12 @@ in description = lib.mdDoc "TCP port where Tautulli listens."; }; + openFirewall = mkOption { + type = types.bool; + default = false; + description = "Open ports in the firewall for Tautulli."; + }; + user = mkOption { type = types.str; default = "plexpy"; @@ -74,6 +80,8 @@ in }; }; + networking.firewall.allowedTCPPorts = mkIf cfg.openFirewall [ cfg.port ]; + users.users = mkIf (cfg.user == "plexpy") { plexpy = { group = cfg.group; uid = config.ids.uids.plexpy; }; }; |