mirror of
https://git.feal.no/felixalb/nixos-config.git
synced 2024-12-21 19:57:30 +01:00
challenger: add ersatztv
This commit is contained in:
parent
3ce9a31dab
commit
47c9ad9150
@ -12,6 +12,7 @@
|
||||
./filesystems.nix
|
||||
|
||||
./services/calibre.nix
|
||||
./services/ersatztv.nix
|
||||
./services/jellyfin.nix
|
||||
./services/komga.nix
|
||||
./services/navidrome.nix
|
||||
|
27
hosts/challenger/services/ersatztv.nix
Normal file
27
hosts/challenger/services/ersatztv.nix
Normal 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}";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user