2020-01-12 15:20:45 -08:00
|
|
|
# Finally, a decent open alternative to Plex!
|
|
|
|
|
2020-03-28 22:48:43 -07:00
|
|
|
{ config, options, pkgs, lib, ... }:
|
|
|
|
with lib;
|
2020-01-12 15:20:45 -08:00
|
|
|
{
|
2020-03-28 22:48:43 -07:00
|
|
|
options.modules.services.jellyfin = {
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
2020-01-12 15:20:45 -08:00
|
|
|
};
|
|
|
|
|
2020-03-28 22:48:43 -07:00
|
|
|
config = mkIf config.modules.services.jellyfin.enable {
|
|
|
|
services.jellyfin.enable = true;
|
|
|
|
|
|
|
|
networking.firewall = {
|
|
|
|
allowedTCPPorts = [ 8096 ];
|
|
|
|
allowedUDPPorts = [ 8096 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
my.user.extraGroups = [ "jellyfin" ];
|
|
|
|
};
|
2020-01-12 15:20:45 -08:00
|
|
|
}
|