From 56b899d23a9e92b7ddb2b2fd1c9e16df9912a372 Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Mon, 5 Sep 2022 01:00:22 -0300 Subject: [PATCH] maia/minecraft: don't pull modpack on start internet is not always available --- hosts/maia/services/minecraft-modpack.nix | 7 ------- 1 file changed, 7 deletions(-) diff --git a/hosts/maia/services/minecraft-modpack.nix b/hosts/maia/services/minecraft-modpack.nix index 198fd475..3a00a29b 100644 --- a/hosts/maia/services/minecraft-modpack.nix +++ b/hosts/maia/services/minecraft-modpack.nix @@ -2,7 +2,6 @@ let java = "${pkgs.openjdk}/bin/java"; ram = "2760M"; - pack = "https://git.sr.ht/~misterio/Modpack/blob/main/pack.toml"; jar = "server.jar"; in { @@ -11,12 +10,6 @@ in wantedBy = [ "multi-user.target" ]; after = [ "network.target" ]; - # Update modpack - preStart = '' - ${pkgs.wget}/bin/wget -N "https://github.com/packwiz/packwiz-installer-bootstrap/releases/download/v0.0.3/packwiz-installer-bootstrap.jar" - ${java} -jar packwiz-installer-bootstrap.jar -g -s server "${pack}" - ''; - serviceConfig = { ExecStart = '' ${java} -Xmx${ram} -Xms${ram} -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Daikars.new.flags=true -Dusing.aikars.flags=https://mcflags.emc.gs -jar "${jar}" --nogui