minecraft: switch image and enable
All checks were successful
/ check (push) Successful in 2m35s

This commit is contained in:
notohh 2023-10-10 15:45:06 -04:00
parent 98245da210
commit b00cd4bd6d
Signed by: notohh
GPG key ID: BD47506D475EE86D
2 changed files with 9 additions and 4 deletions

View file

@ -7,7 +7,7 @@
./homarr.nix ./homarr.nix
./dashdot.nix ./dashdot.nix
./jellyfin.nix ./jellyfin.nix
./neko.nix
./forgejo-runners.nix ./forgejo-runners.nix
./minecraft.nix
]; ];
} }

View file

@ -1,13 +1,18 @@
_: { _: {
networking.firewall.allowedTCPPorts = [25565]; networking.firewall.allowedTCPPorts = [25565];
virtualisation.oci-containers.containers.minecraft = { virtualisation.oci-containers.containers.minecraft = {
image = "als3bas/zulu-purpurmc:latest"; image = "itzg/minecraft-server";
ports = ["25565:25565"]; ports = ["25565:25565"];
environment = { environment = {
MEMORYSIZE = "10G"; EULA = "TRUE";
VERSION = "1.20.2";
MEMORY = "4G";
TYPE = "FABRIC";
FABRIC_LOADER_VERSION = "0.14.23";
FABRIC_LAUNCHER_VERSION = "0.11.2";
}; };
volumes = [ volumes = [
"/home/notoh/docker/purpur:/data:rw" "/home/notoh/docker/modded-mc:/data:rw"
]; ];
}; };
} }