From 4a09f0518319292bd88d79495228f8fe12e0d946 Mon Sep 17 00:00:00 2001 From: 514fpv Date: Mon, 3 Jun 2024 16:03:15 +0800 Subject: [PATCH] fix(eientei): remove minecraft reverse proxy --- spec/eientei/minecraft.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/spec/eientei/minecraft.nix b/spec/eientei/minecraft.nix index fc485da1..a9b88b9f 100644 --- a/spec/eientei/minecraft.nix +++ b/spec/eientei/minecraft.nix @@ -2,10 +2,15 @@ inherit (lib) mapAttrs' nameValuePair; servers = { - bungeecord = { - cmdline = "${pkgs.graalvmCEPackages.graalvm-ce}/bin/java -Xms2G -Xmx4G -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -jar BungeeCord.jar"; - stop = "end"; - }; + #bungeecord = { + # cmdline = "${pkgs.graalvmCEPackages.graalvm-ce}/bin/java -Xms2G -Xmx4G -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -jar waterfall-1.20-578.jar"; + # stop = "end"; + #}; + + #limbo = { + # cmdline = "${pkgs.graalvmCEPackages.graalvm-ce}/bin/java -Xms1G -Xmx1G -jar NanoLimbo-1.8-all.jar"; + # stop = "stop"; + #}; nfwc = { cmdline = "${pkgs.jdk}/bin/java @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.19.2-43.3.8/unix_args.txt"; @@ -54,6 +59,7 @@ in { wantedBy = [ "multi-user.target" ]; requires = [ "${prefix}${name}.socket" ]; after = [ "network.target" "${prefix}${name}.socket" ]; + path = [ pkgs.bash ]; serviceConfig = { ExecStart = cmdline;