challenger: add ersatztv
This commit is contained in:
parent
3ce9a31dab
commit
47c9ad9150
|
@ -12,6 +12,7 @@
|
||||||
./filesystems.nix
|
./filesystems.nix
|
||||||
|
|
||||||
./services/calibre.nix
|
./services/calibre.nix
|
||||||
|
./services/ersatztv.nix
|
||||||
./services/jellyfin.nix
|
./services/jellyfin.nix
|
||||||
./services/komga.nix
|
./services/komga.nix
|
||||||
./services/navidrome.nix
|
./services/navidrome.nix
|
||||||
|
|
|
@ -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}";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue