From 8e9b6169b13256e7533360fa356a8eec750d0ff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Sun, 16 Aug 2020 21:24:27 +0100 Subject: [PATCH] minecraft: Run with a non-headless java to include awt Quark requires awt on the server side to draw some things. --- etc/nixos/services/minecraft.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/nixos/services/minecraft.nix b/etc/nixos/services/minecraft.nix index b2ddf87..2879335 100644 --- a/etc/nixos/services/minecraft.nix +++ b/etc/nixos/services/minecraft.nix @@ -82,7 +82,7 @@ in tag = "latest"; config = { Entrypoint = [ "${entrypoint}" ]; - Cmd = [ "${pkgs.jre_headless}/bin/java" + Cmd = [ "${pkgs.jre}/bin/java" "-Xms2G" "-Xmx2G" # Using recommended flags from https://mcflags.emc.gs