nix-config/modules/nixos/jellyfin.nix
2026-02-20 11:01:28 +01:00

24 lines
549 B
Nix

{ pkgs, ... }:
{
services.jellyfin.enable = true; # port = 8096
## Grab EPG data daily
systemd = {
services = {
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";
};
};
timers.epg.timerConfig.Persistent = true;
};
}