From b00cd4bd6d859674618ae1e2844b8c407ed8880c Mon Sep 17 00:00:00 2001 From: notohh Date: Tue, 10 Oct 2023 15:45:06 -0400 Subject: [PATCH] minecraft: switch image and enable --- hosts/yuki/services/default.nix | 2 +- hosts/yuki/services/minecraft.nix | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/hosts/yuki/services/default.nix b/hosts/yuki/services/default.nix index 2f05bbd..dac378b 100644 --- a/hosts/yuki/services/default.nix +++ b/hosts/yuki/services/default.nix @@ -7,7 +7,7 @@ ./homarr.nix ./dashdot.nix ./jellyfin.nix - ./neko.nix ./forgejo-runners.nix + ./minecraft.nix ]; } diff --git a/hosts/yuki/services/minecraft.nix b/hosts/yuki/services/minecraft.nix index 571cb24..2412208 100644 --- a/hosts/yuki/services/minecraft.nix +++ b/hosts/yuki/services/minecraft.nix @@ -1,13 +1,18 @@ _: { networking.firewall.allowedTCPPorts = [25565]; virtualisation.oci-containers.containers.minecraft = { - image = "als3bas/zulu-purpurmc:latest"; + image = "itzg/minecraft-server"; ports = ["25565:25565"]; 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 = [ - "/home/notoh/docker/purpur:/data:rw" + "/home/notoh/docker/modded-mc:/data:rw" ]; }; }