Move EPG to docker (podman) container

This commit is contained in:
Jan Kremer 2026-02-20 14:01:26 +01:00
parent 509cba0c51
commit a90011ae2f
No known key found for this signature in database

View file

@ -1,24 +1,14 @@
{ pkgs, ... }:
{ {
services.jellyfin.enable = true; # port = 8096 services.jellyfin.enable = true; # port = 8096
## Grab EPG data daily ## Grab EPG data daily
systemd = { virtualisation.oci-containers = {
services = { containers = {
epg = { epg = {
script = "${pkgs.nodejs}/bin/npm run --prefix /mnt/media/TV/epg/ grab --- --channels=/mnt/media/TV/custom.channels.xml"; image = "ghcr.io/iptv-org/epg:master";
path = [ ports = [ "3001:3000" ];
pkgs.bash volumes = [ "/mnt/media/TV/custom.channels.xml:/epg/public/channels.xml" ];
pkgs.nodejs
];
serviceConfig = {
Type = "oneshot";
User = "root";
};
## Creates a timer
startAt = "daily";
}; };
}; };
timers.epg.timerConfig.Persistent = true;
}; };
} }