feat: added minecraft server

This commit is contained in:
Nick 2025-11-17 22:56:40 -06:00
parent 2932b9f18d
commit 5e8b59c7ad
11 changed files with 441 additions and 231 deletions

View file

@ -1,30 +1,38 @@
{ moduleFunctions }:
let
inherit (moduleFunctions.instancesFunctions)
domain0
servicePath
sslPath
sopsPath
varPath
mntPath
secretPath
;
label = "Minecraft";
name = "minecraft";
short = "mine";
secrets = "${secretPath}/${name}";
in
{
label = label;
name = name;
sops = {
path0 = "${sopsPath}/${name}";
};
subdomain = name;
paths = {
path0 = "${servicePath}/${label}";
};
short = short;
ports = {
port0 = 43000; # Minecraft (Brix on Nix)
port0 = 43000;
};
ssl = {
cert = "${sslPath}/${name}.${domain0}/fullchain.pem";
key = "${sslPath}/${name}.${domain0}/key.pem";
interface = {
id = "vm-${short}";
mac = "02:00:00:00:51:41";
idUser = "vmuser-${short}";
macUser = "02:00:00:00:00:41";
ip = "192.168.50.141";
gate = "192.168.50.1";
ssh = 2401;
};
varPaths = {
path0 = "${varPath}/${name}";
};
mntPaths = {
path0 = "${mntPath}/${name}";
};
secretPaths = {
path0 = secrets;
};
}