From 61eb42235dd07dc5efbbeb6f9847435a9c3913d5 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 26 Nov 2024 20:03:18 +0000 Subject: [PATCH] add arion jellyfin container --- hosts/common/optional/docker/jellyfin.nix | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 hosts/common/optional/docker/jellyfin.nix 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"]; + }; + }; + }; + }; +}