snowflake/hosts/yuki/services/minecraft.nix
notohh b2bfe83faa
All checks were successful
/ check (push) Successful in 48s
minecraft: open udp port
2023-10-12 23:32:37 -04:00

19 lines
521 B
Nix

_: {
networking.firewall.allowedTCPPorts = [25565];
networking.firewall.allowedUDPPorts = [24454];
virtualisation.oci-containers.containers.minecraft = {
image = "itzg/minecraft-server";
ports = ["25565:25565" "24454:24454/udp"];
environment = {
EULA = "TRUE";
VERSION = "1.19.2";
MEMORY = "4G";
TYPE = "FABRIC";
FABRIC_LOADER_VERSION = "0.14.23";
FABRIC_LAUNCHER_VERSION = "0.11.2";
};
volumes = [
"/home/notoh/docker/modded-mc:/data:rw"
];
};
}