17 lines
513 B
Nix
17 lines
513 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.20.1";
|
|
MEMORY = "6G";
|
|
TYPE = "FABRIC";
|
|
# FABRIC_LOADER_VERSION = "0.15.11";
|
|
# FABRIC_LAUNCHER_VERSION = "0.11.2";
|
|
};
|
|
volumes = ["/home/notoh/docker/modded-mc:/data:rw"];
|
|
};
|
|
}
|