helm/modules/services/jellyfin.nix

24 lines
450 B
Nix
Raw Normal View History

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