2024-08-27 22:43:04 +02:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
let
|
|
|
|
|
cfg = import ./vars.nix;
|
|
|
|
|
name = "tvproxy";
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
sops.secrets."${name}/registryuser" = {};
|
|
|
|
|
sops.secrets."${name}/registrypass" = {};
|
|
|
|
|
sops.secrets."${name}/env" = {};
|
|
|
|
|
|
|
|
|
|
virtualisation.oci-containers.containers.tvproxy = {
|
2025-09-24 15:31:54 +02:00
|
|
|
#image = "1337.run.place:63443/tvproxy";
|
|
|
|
|
image = "stubenrein.org:63444/tvproxy:latest";
|
2024-08-27 22:43:04 +02:00
|
|
|
login.username = builtins.readFile config.sops.secrets."tvproxy/registryuser".path;
|
|
|
|
|
login.passwordFile = config.sops.secrets."tvproxy/registrypass".path;
|
2025-09-24 15:31:54 +02:00
|
|
|
login.registry = "https://stubenrein.org:63444";
|
2024-08-27 22:43:04 +02:00
|
|
|
environment = {
|
|
|
|
|
TZ = "Europe/Berlin";
|
|
|
|
|
IP = "192.168.178.2";
|
|
|
|
|
IPPORT = "64321";
|
|
|
|
|
};
|
|
|
|
|
environmentFiles = [ config.sops.secrets."${name}/env".path ];
|
|
|
|
|
ports = [
|
|
|
|
|
"64321:64321"
|
|
|
|
|
];
|
|
|
|
|
extraOptions = cfg.podman.extraOptions;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
# vim: set et ts=2 sw=2 ai:
|