dotfiles/modules/config/instances/config/minecraft0.nix
2025-11-27 01:17:38 -06:00

36 lines
647 B
Nix
Executable file

{ moduleFunctions }:
let
inherit (moduleFunctions.instancesFunctions)
varPath
mntPath
secretPath
;
label = "Minecraft";
name = "minecraft";
world = "world0";
in
{
label = label;
name = name;
ports = {
port0 = 43000;
};
interface = {
id = "vm-${world}";
mac = "02:00:00:00:51:41";
idUser = "vmuser-${world}";
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}/${world}";
};
secretPaths = {
path0 = "${secretPath}/${name}";
};
}