snowflake/hosts/yuki/services/minecraft.nix
2023-06-30 16:59:27 -04:00

13 lines
325 B
Nix

{...}: {
networking.firewall.allowedTCPPorts = [25565];
virtualisation.oci-containers.containers.minecraft = {
image = "marctv/minecraft-papermc-server:latest";
ports = ["25565:25565"];
environment = {
MEMORYSIZE = "6G";
};
volumes = [
"/home/notoh/docker/mcserver:/data:rw"
];
};
}