From a90011ae2f6ee20a7bf8257c0d08a71db7d439b7 Mon Sep 17 00:00:00 2001 From: Jan Kremer Date: Fri, 20 Feb 2026 14:01:26 +0100 Subject: [PATCH] Move EPG to docker (podman) container --- modules/nixos/jellyfin.nix | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/modules/nixos/jellyfin.nix b/modules/nixos/jellyfin.nix index 235285e..b9ca0d0 100644 --- a/modules/nixos/jellyfin.nix +++ b/modules/nixos/jellyfin.nix @@ -1,24 +1,14 @@ -{ pkgs, ... }: { services.jellyfin.enable = true; # port = 8096 ## Grab EPG data daily - systemd = { - services = { + virtualisation.oci-containers = { + containers = { epg = { - script = "${pkgs.nodejs}/bin/npm run --prefix /mnt/media/TV/epg/ grab --- --channels=/mnt/media/TV/custom.channels.xml"; - path = [ - pkgs.bash - pkgs.nodejs - ]; - serviceConfig = { - Type = "oneshot"; - User = "root"; - }; - ## Creates a timer - startAt = "daily"; + image = "ghcr.io/iptv-org/epg:master"; + ports = [ "3001:3000" ]; + volumes = [ "/mnt/media/TV/custom.channels.xml:/epg/public/channels.xml" ]; }; }; - timers.epg.timerConfig.Persistent = true; }; }