{ config, pkgs, ... }: { virtualisation.oci-containers.containers.neoforge-1-21-1 = { user = "minecraft:minecraft"; image = "docker.io/itzg/minecraft-server"; volumes = [ "/var/lib/minecraft/forge-1-21-1:/data" ]; ports = [ "30005:30005" ]; environment = { TYPE = "NEOFORGE"; VERSION = "1.21.1"; EULA = "TRUE"; INIT_MEMORY = "1G"; MAX_MEMORY = "4G"; SERVER_PORT = "30005"; UID = "992"; GID = "991"; }; }; services.minecraft-servers.servers.velocity.symlinks."velocity.toml".value = { servers = { neoforge-1-21-1 = "127.0.0.1:30005"; }; }; }