snowflake/hosts/sora/services/minecraft.nix

18 lines
513 B
Nix
Raw Permalink 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";
2024-10-08 09:35:04 -04:00
VERSION = "1.20.1";
MEMORY = "6G";
2023-10-10 15:45:06 -04:00
TYPE = "FABRIC";
2024-10-08 09:35:04 -04:00
# FABRIC_LOADER_VERSION = "0.15.11";
# FABRIC_LAUNCHER_VERSION = "0.11.2";
2023-06-30 16:59:27 -04:00
};
volumes = ["/home/notoh/docker/modded-mc:/data:rw"];
2023-06-30 16:59:27 -04:00
};
}