dotfiles/modules/config/instances/config/jellyfin.nix

37 lines
696 B
Nix
Raw Normal View History

2025-06-26 21:20:09 -05:00
{ moduleFunctions }:
2025-03-29 23:08:26 -05:00
let
2025-06-26 21:20:09 -05:00
inherit (moduleFunctions.instancesFunctions)
2025-03-29 23:08:26 -05:00
domain0
servicePath
sslPath
sopsPath
;
label = "Jellyfin";
name = "jellyfin";
domain = "${name}.${domain0}";
2025-03-29 23:08:26 -05:00
in
{
label = label;
name = name;
2025-03-29 23:08:26 -05:00
sops = {
path0 = "${sopsPath}/${name}";
2025-03-29 23:08:26 -05:00
};
2025-06-10 15:54:00 -05:00
domains = {
url0 = domain;
2025-06-10 15:54:00 -05:00
};
subdomain = name;
2025-03-29 23:08:26 -05:00
paths = {
path0 = "${servicePath}/${label}";
path1 = "${servicePath}/${label}/cache";
2025-03-29 23:08:26 -05:00
};
ports = {
port0 = 5055; # Jellyseer
port1 = 8096; # Jellyfin HTTP
port2 = 8920; # Jellyfin HTTPS
};
ssl = {
cert = "${sslPath}/${name}.${domain0}/fullchain.pem";
key = "${sslPath}/${name}.${domain0}/key.pem";
2025-03-29 23:08:26 -05:00
};
}