challenger: add ersatztv

This commit is contained in:
Felix Albrigtsen 2024-09-10 18:38:23 +02:00
parent 3ce9a31dab
commit 47c9ad9150
2 changed files with 28 additions and 0 deletions

View File

@ -12,6 +12,7 @@
./filesystems.nix
./services/calibre.nix
./services/ersatztv.nix
./services/jellyfin.nix
./services/komga.nix
./services/navidrome.nix

View File

@ -0,0 +1,27 @@
{ config, lib, pkgs, ... }:
let
domain = "etv.home.feal.no";
bind = "127.0.0.1:8409";
in {
virtualisation.oci-containers.containers.ersatztv = {
autoStart = true;
image = "jasongdove/ersatztv:latest-nvidia";
volumes = [
"/var/lib/ersatztv:/root/.local/share/ersatztv"
"/tank/media/other/ersatztv:/media" # Filler, watermarks, etc.
];
ports = [
"${bind}:8409"
];
environment = {
TZ = "Europe/Oslo";
};
extraOptions = [
"--device=/dev/dri"
];
};
services.nginx.virtualHosts.${domain} = {
locations."/".proxyPass = "http://${bind}";
};
}