nixos-config/modules/arrstack/mediathekarr.nix

51 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2025-11-10 14:18:35 +01:00
{ config, lib, ... }:
let
cfg = import /etc/nixos/modules/vars.nix;
name = "mediathekarr";
port = "5007";
in
{
imports = [
#./podman.nix
#./podman-postgresql.nix # for the database
#./nginx.nix # for the webserver
];
#sops.secrets."${name}/db" = {};
#sops.secrets."${name}/env" = {};
virtualisation.oci-containers.containers.${name} = {
image = "docker.io/pcjones/mediathekarr:beta";
environment = {
PUID = toString config.users.users.arr.uid;
PGID = toString config.users.groups.arr.gid;
TZ = "Europe/Berlin";
};
#environmentFiles = [ config.sops.secrets."${name}/env".path ];
ports = [
"${port}:${port}"
];
volumes = [
"/var/lib/${name}:/app/config"
"/mnt/mergerfs/media/mediathek:/data/mediathek"
];
extraOptions = cfg.podman.extraOptions;
autoStart = false;
};
#services.nginx.virtualHosts.${domain} = {
# forceSSL = true;
# enableACME = true;
# locations."/" = {
# proxyPass = "http://localhost:${port}";
# proxyWebsockets = true;
# };
# extraConfig = ''
# access_log /var/log/nginx/${domain}_access.log;
# error_log /var/log/nginx/${domain}_error.log;
# '';
#};
}
# vim: set et ts=2 sw=2 ai: