snowflake/hosts/yuki/services/minecraft.nix
notohh b00cd4bd6d
All checks were successful
/ check (push) Successful in 2m35s
minecraft: switch image and enable
2023-10-10 15:45:06 -04:00

18 lines
454 B
Nix

_: {
networking.firewall.allowedTCPPorts = [25565];
virtualisation.oci-containers.containers.minecraft = {
image = "itzg/minecraft-server";
ports = ["25565:25565"];
environment = {
EULA = "TRUE";
VERSION = "1.20.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"
];
};
}