test: trying to get microVMs to work

This commit is contained in:
Nick 2025-11-10 01:21:38 -06:00
parent 5fc49f405a
commit 72bb3fbe34
11 changed files with 350 additions and 167 deletions

View file

@ -2,24 +2,25 @@
let
inherit (moduleFunctions.instancesFunctions)
domain0
servicePath
sslPath
sopsPath
varPath
mntPath
secretPath
cachePath
;
label = "Firefly-III";
name = "firefly-iii";
domain = "${subdomain}.${domain0}";
subdomain = "finances";
domain = "${subdomain}.${domain0}";
secrets = "${secretPath}/${name}";
ssl = "${sslPath}/${domain}";
in
{
label = label;
name = name;
short = label;
email = {
address0 = "noreply@${domain}";
};
sops = {
path0 = "${sopsPath}/${name}";
address0 = "noreply@${domain0}";
};
domains = {
url0 = domain;
@ -30,14 +31,32 @@ in
"money"
];
subdomain = subdomain;
paths = {
path0 = "${servicePath}/${label}";
};
ports = {
port0 = 8080;
port1 = 8081;
};
interface = {
id = "vm-${name}";
mac = "02:00:00:00:54:04";
idUser = "vmuser-firefly";
macUser = "02:00:00:00:00:04";
ip = "192.168.50.114";
gate = "192.168.50.1";
ssh = 2204;
};
ssl = {
cert = "${sslPath}/${domain}/fullchain.pem";
key = "${sslPath}/${domain}/key.pem";
path = ssl;
cert = "${ssl}/fullchain.pem";
key = "${ssl}/key.pem";
};
varPaths = {
path0 = "${varPath}/${name}";
path1 = "${cachePath}/${name}";
};
mntPaths = {
path0 = "${mntPath}/${name}";
};
secretPaths = {
path0 = secrets;
};
}

View file

@ -37,12 +37,12 @@ in
};
interface = {
id = "vm-${name}";
mac = "02:00:00:00:00:53";
mac = "02:00:00:00:53:03";
idUser = "vmuser-${name}";
macUser = "02:00:00:00:00:05";
ip = "192.168.50.153";
macUser = "02:00:00:00:00:03";
ip = "192.168.50.113";
gate = "192.168.50.1";
ssh = 2205;
ssh = 2203;
};
ssl = {

View file

@ -38,12 +38,12 @@ in
};
interface = {
id = "vm-${name}";
mac = "02:00:00:00:00:52";
mac = "02:00:00:00:52:02";
idUser = "vmuser-${name}";
macUser = "03:00:00:00:00:04";
ip = "192.168.50.152";
macUser = "02:00:00:00:00:02";
ip = "192.168.50.112";
gate = "192.168.50.1";
ssh = 2203;
ssh = 2202;
};
ssl = {
path = ssl;
@ -53,6 +53,7 @@ in
varPaths = {
path0 = "${varPath}/${name}";
path1 = "${cachePath}/${name}";
path2 = "${varPath}/${name}-media";
};
mntPaths = {
path0 = "${mntPath}/${name}";

View file

@ -36,10 +36,10 @@ in
};
interface = {
id = "vm-${name}";
mac = "02:00:00:00:00:51";
mac = "02:00:00:00:51:01";
idUser = "vmuser-vault";
macUser = "02:00:00:00:00:03";
ip = "192.168.50.151";
macUser = "02:00:00:00:00:01";
ip = "192.168.50.111";
gate = "192.168.50.1";
ssh = 2201;
};