mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
test: setting up opencloud and microvms
This commit is contained in:
parent
4b520563d4
commit
0ed3bb9b64
11 changed files with 171 additions and 33 deletions
56
modules/config/instances/config/opencloud0.nix
Executable file
56
modules/config/instances/config/opencloud0.nix
Executable file
|
|
@ -0,0 +1,56 @@
|
|||
{ moduleFunctions }:
|
||||
let
|
||||
inherit (moduleFunctions.instancesFunctions)
|
||||
domain0
|
||||
sslPath
|
||||
varPath
|
||||
mntPath
|
||||
secretPath
|
||||
;
|
||||
label = "OpenCloud";
|
||||
name = "opencloud";
|
||||
short = "cloud";
|
||||
domain = "${short}.${domain0}";
|
||||
secrets = "${secretPath}/${name}";
|
||||
ssl = "${sslPath}/${domain}";
|
||||
in
|
||||
{
|
||||
label = label;
|
||||
name = name;
|
||||
short = "Cloud";
|
||||
domains = {
|
||||
url0 = domain;
|
||||
};
|
||||
subdomain = short;
|
||||
tags = [
|
||||
name
|
||||
"opencloud"
|
||||
"cloud"
|
||||
];
|
||||
ports = {
|
||||
port0 = 9200;
|
||||
};
|
||||
interface = {
|
||||
id = "vm-${short}";
|
||||
mac = "02:00:00:00:56:09";
|
||||
idUser = "vmuser-${short}";
|
||||
macUser = "02:00:00:00:00:09";
|
||||
ip = "192.168.50.119";
|
||||
gate = "192.168.50.1";
|
||||
ssh = 2209;
|
||||
};
|
||||
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