dotfiles/modules/config/instances/config/jellyfin.nix
2025-06-08 22:39:09 -05:00

32 lines
668 B
Nix
Executable file

{ instancesFunctions }:
let
inherit (instancesFunctions)
domain0
jellyfinLabel
jellyfinName
servicePath
sslPath
sopsPath
;
in
{
label = jellyfinLabel;
name = jellyfinName;
sops = {
path0 = "${sopsPath}/${jellyfinName}";
};
subdomain = jellyfinName;
paths = {
path0 = "${servicePath}/${jellyfinLabel}";
path1 = "${servicePath}/${jellyfinLabel}/cache";
};
ports = {
port0 = 5055; # Jellyseer
port1 = 8096; # Jellyfin HTTP
port2 = 8920; # Jellyfin HTTPS
};
ssl = {
cert = "${sslPath}/${jellyfinName}.${domain0}/fullchain.pem";
key = "${sslPath}/${jellyfinName}.${domain0}/key.pem";
};
}