Move EPG to docker (podman) container
This commit is contained in:
parent
509cba0c51
commit
a90011ae2f
1 changed files with 5 additions and 15 deletions
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue