14 lines
325 B
Nix
14 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"
|
||
|
];
|
||
|
};
|
||
|
}
|