From b2c8f3f1b032f45b59028393e3a4e05b3baa5b42 Mon Sep 17 00:00:00 2001 From: Marcin Maselko Date: Fri, 25 Jul 2025 17:34:34 +0200 Subject: added minecraft mod server --- modules/games/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'modules/games/default.nix') diff --git a/modules/games/default.nix b/modules/games/default.nix index 405a842..b0a66ac 100644 --- a/modules/games/default.nix +++ b/modules/games/default.nix @@ -46,4 +46,23 @@ spawn-protection = 0; }; }; + + virtualisation.oci-containers.containers = { + minecraft_mods = { + image = "itzg/minecraft-server"; + autoStart = true; + environment = { + EULA = "true"; + TYPE = "FABRIC"; + VERSION = "1.21.8"; + SEED = "-3691007458655063350"; + }; + ports = [ + "25566:25565" + ]; + volumes = [ + "/var/lib/minecraft_mods:/data" + ]; + }; + }; } -- cgit v1.2.3