diff --git a/hosts/common/optional/docker/jellyfin.nix b/hosts/common/optional/docker/jellyfin.nix new file mode 100644 index 0000000..d439ebe --- /dev/null +++ b/hosts/common/optional/docker/jellyfin.nix @@ -0,0 +1,30 @@ +{ + virtualisation.arion = { + backend = "podman-socket"; + projects.jellyfin = { + settings = { + services.jellyfin.service = { + ports = [ + "8096:8096" + ]; + image = "lscr.io/linuxserver/jellyfin:latest"; + restart = "always"; + volumes = [ + "/srv/media-server/jellyfin/config:/config" + "/media/media/tv:/data/tvshows" + "/media/media/movies:/data/movies" + "/media/media/music/music_data:/data/music" + "/media/media/youtube:/data/youtube" + "/media/media/podcasts:/data/podcasts" + "/srv/media-server/jellyfin/config/custom-cont-init.d:/custom-cont-init.d:ro" + ]; + environment = { + PUID = "1000"; + PGID = "1000"; + }; + devices = ["/dev/dri:/dev/dri"]; + }; + }; + }; + }; +}