tfc-nixos/modules/metube.nix
2025-05-19 21:49:27 -05:00

31 lines
569 B
Nix

{ config, lib, pkgs, ... }:
let
dn = "ytdl.tfcconnection.org";
in
with lib;
{
services.nginx.virtualHosts.${dn} = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8585";
};
};
virtualisation = {
podman = {
enable = true;
};
oci-containers = {
# backend = "podman";
containers = {
metube = {
image = "ghcr.io/alexta69/metube";
ports = [ "8585:8081" ];
volumes = [ "/storage/downloads:/downloads" ];
};
};
};
};
}