test: trying to get microVMs to work

This commit is contained in:
Nick 2025-11-11 01:01:05 -06:00
parent 0c4173ceaf
commit 2582d3cec9
9 changed files with 539 additions and 417 deletions

View file

@ -2,22 +2,25 @@
let
inherit (moduleFunctions.instancesFunctions)
domain1
servicePath
sslPath
sopsPath
varPath
mntPath
secretPath
cachePath
;
label = "Mastodon";
name = "mastodon";
subdomain = "social";
domain = "${subdomain}.${domain1}";
secrets = "${secretPath}/${name}";
ssl = "${sslPath}/${domain}";
in
{
label = label;
name = name;
short = "Mast";
email = {
address0 = "noreply@${domain}";
address0 = "noreply@${domain1}";
};
domains = {
url0 = domain;
@ -28,16 +31,28 @@ in
"mast"
"md"
];
sops = {
path0 = "${sopsPath}/${name}";
};
paths = {
path0 = "${servicePath}/${label}";
path1 = "";
path2 = "";
interface = {
id = "vm-${name}";
mac = "02:00:00:00:55:05";
idUser = "vmuser-mastodon";
macUser = "02:00:00:00:00:05";
ip = "192.168.50.115";
gate = "192.168.50.1";
ssh = 2205;
};
ssl = {
cert = "${sslPath}/${subdomain}.${domain1}/fullchain.pem";
key = "${sslPath}/${subdomain}.${domain1}/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;
};
}