snowflake/hosts/yuki/services/minecraft.nix

20 lines
521 B
Nix
Raw Normal View History

2023-09-16 18:54:50 -04:00
_: {
2023-06-30 16:59:27 -04:00
networking.firewall.allowedTCPPorts = [25565];
2023-10-12 23:32:37 -04:00
networking.firewall.allowedUDPPorts = [24454];
2023-06-30 16:59:27 -04:00
virtualisation.oci-containers.containers.minecraft = {
2023-10-10 15:45:06 -04:00
image = "itzg/minecraft-server";
2023-10-12 23:32:37 -04:00
ports = ["25565:25565" "24454:24454/udp"];
2023-06-30 16:59:27 -04:00
environment = {
2023-10-10 15:45:06 -04:00
EULA = "TRUE";
2023-10-12 02:21:24 -04:00
VERSION = "1.19.2";
2023-10-15 22:37:15 -04:00
MEMORY = "8G";
2023-10-10 15:45:06 -04:00
TYPE = "FABRIC";
FABRIC_LOADER_VERSION = "0.14.23";
FABRIC_LAUNCHER_VERSION = "0.11.2";
2023-06-30 16:59:27 -04:00
};
volumes = [
2023-10-10 15:45:06 -04:00
"/home/notoh/docker/modded-mc:/data:rw"
2023-06-30 16:59:27 -04:00
];
};
}