helm/modules/services/jellyfin.nix
2020-03-29 01:55:14 -04:00

24 lines
470 B
Nix

# Finally, a decent open alternative to Plex!
{ config, options, pkgs, lib, ... }:
with lib;
{
options.modules.services.jellyfin = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf config.modules.services.jellyfin.enable {
services.jellyfin.enable = true;
networking.firewall = {
allowedTCPPorts = [ 8096 ];
allowedUDPPorts = [ 8096 ];
};
my.user.extraGroups = [ "jellyfin" ];
};
}