mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
63 lines
1.1 KiB
Nix
Executable file
63 lines
1.1 KiB
Nix
Executable file
{ moduleFunctions }:
|
|
let
|
|
inherit (moduleFunctions.instancesFunctions)
|
|
domain0
|
|
sslPath
|
|
varPath
|
|
mntPath
|
|
secretPath
|
|
;
|
|
label = "Jellyfin";
|
|
name = "jellyfin";
|
|
domain = "${name}.${domain0}";
|
|
secrets = "${secretPath}/${name}";
|
|
ssl = "${sslPath}/${name}.${domain0}";
|
|
in
|
|
{
|
|
label = label;
|
|
name = name;
|
|
short = "Jelly";
|
|
email = {
|
|
address0 = "noreply@${domain0}";
|
|
};
|
|
domains = {
|
|
url0 = domain;
|
|
};
|
|
tags = [
|
|
"jelly"
|
|
"video"
|
|
"streaming"
|
|
"movies"
|
|
"shows"
|
|
"music"
|
|
];
|
|
subdomain = name;
|
|
ports = {
|
|
port0 = 8096; # Jellyfin HTTP
|
|
port1 = 5055; # Jellyseer
|
|
port2 = 8920; # Jellyfin HTTPS
|
|
};
|
|
interface = {
|
|
id = "vm-${name}";
|
|
mac = "02:00:00:00:00:52";
|
|
idUser = "vmuser-jellyfin";
|
|
macUser = "02:00:00:00:00:04";
|
|
ip = "192.168.50.152";
|
|
gate = "192.168.50.1";
|
|
ssh = 2202;
|
|
};
|
|
ssl = {
|
|
path = ssl;
|
|
cert = "${ssl}/fullchain.pem";
|
|
key = "${ssl}/key.pem";
|
|
};
|
|
varPaths = {
|
|
path0 = "${varPath}/${name}";
|
|
};
|
|
mntPaths = {
|
|
path0 = "${mntPath}/${name}";
|
|
};
|
|
secretPaths = {
|
|
path0 = secrets;
|
|
};
|
|
}
|