mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
feat: started working on torrent VM
This commit is contained in:
parent
e25a9bffc1
commit
b272b98427
6 changed files with 318 additions and 18 deletions
54
modules/config/instances/config/torrent.nix
Executable file
54
modules/config/instances/config/torrent.nix
Executable file
|
|
@ -0,0 +1,54 @@
|
|||
{ moduleFunctions }:
|
||||
let
|
||||
inherit (moduleFunctions.instancesFunctions)
|
||||
domain0
|
||||
sslPath
|
||||
varPath
|
||||
mntPath
|
||||
secretPath
|
||||
;
|
||||
label = "Rqbit";
|
||||
name = "rqbit";
|
||||
subdomain = "share";
|
||||
domain = "${subdomain}.${domain0}";
|
||||
secrets = "${secretPath}/${name}";
|
||||
ssl = "${sslPath}/${domain}";
|
||||
in
|
||||
{
|
||||
label = label;
|
||||
name = name;
|
||||
short = label;
|
||||
domains = {
|
||||
url0 = domain;
|
||||
};
|
||||
subdomain = name;
|
||||
tags = [
|
||||
name
|
||||
"rqbit"
|
||||
"torrent"
|
||||
"p2p"
|
||||
];
|
||||
interface = {
|
||||
id = "vm-${name}";
|
||||
mac = "02:00:00:00:56:07";
|
||||
idUser = "vmuser-${name}";
|
||||
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}/${name}";
|
||||
};
|
||||
mntPaths = {
|
||||
path0 = "${mntPath}/${name}";
|
||||
};
|
||||
secretPaths = {
|
||||
path0 = secrets;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue