From 7364904eb3ed41bda616c63c3da3e4dda393e5d4 Mon Sep 17 00:00:00 2001 From: Christine Elisabeth Koppel Date: Mon, 6 Apr 2026 00:33:34 +0300 Subject: [PATCH] Update Minecraft server package version and simplify JVM options --- nix-system-configs/modules/system/minecraft.nix | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/nix-system-configs/modules/system/minecraft.nix b/nix-system-configs/modules/system/minecraft.nix index 7e945e7..f6cbd9c 100644 --- a/nix-system-configs/modules/system/minecraft.nix +++ b/nix-system-configs/modules/system/minecraft.nix @@ -75,27 +75,12 @@ in { autoStart = true; restart = "always"; - package = pkgs.neoforgeServers.neoforge; + package = pkgs.neoforgeServers.neoforge-1_21_1-21_1_224; jvmOpts = lib.concatStringsSep " " [ "-Xms28G" # Use 120GB of RA "-Xmx32G" - - "-XX:+UseG1GC" - "-XX:+ParallelRefProcEnabled" - "-XX:MaxGCPauseMillis=80" - "-XX:+UnlockExperimentalVMOptions" - "-XX:+DisableExplicitGC" - "-XX:+AlwaysPreTouch" - "-XX:G1NewSizePercent=30" - "-XX:G1MaxNewSizePercent=50" - "-XX:G1HeapRegionSize=16M" - "-XX:G1ReservePercent=20" - "-XX:G1MixedGCCountTarget=4" - "-XX:InitiatingHeapOccupancyPercent=15" - "-XX:G1MixedGCLiveThresholdPercent=90" - "-XX:G1RSetUpdatingPauseTimePercent=5" ]; serverProperties = {