dotfiles/modules/config/instances/config/torrent.nix

57 lines
971 B
Nix
Raw Normal View History

2025-11-24 03:14:44 -06:00
{ moduleFunctions }:
let
inherit (moduleFunctions.instancesFunctions)
domain0
sslPath
varPath
mntPath
secretPath
;
label = "qBittorrent";
name = "qbittorrent";
short = "share";
domain = "${short}.${domain0}";
2025-11-24 03:14:44 -06:00
secrets = "${secretPath}/${name}";
ssl = "${sslPath}/${domain}";
in
{
label = label;
name = name;
short = label;
domains = {
url0 = domain;
};
subdomain = short;
2025-11-24 03:14:44 -06:00
tags = [
name
"torrent"
"p2p"
];
2025-11-25 13:01:51 -06:00
ports = {
port0 = 3030;
};
2025-11-24 03:14:44 -06:00
interface = {
id = "vm-${short}";
2025-11-24 03:14:44 -06:00
mac = "02:00:00:00:56:07";
idUser = "vmuser-${short}";
2025-11-24 03:14:44 -06:00
macUser = "02:00:00:00:00:07";
ip = "192.168.50.117";
gate = "192.168.50.1";
ssh = 2207;
};
ssl = {
path = ssl;
cert = "${ssl}/fullchain.pem";
key = "${ssl}/key.pem";
};
varPaths = {
path0 = "${varPath}/${label}";
2025-11-24 03:14:44 -06:00
};
mntPaths = {
path0 = "${mntPath}/${name}";
};
secretPaths = {
path0 = secrets;
};
}