diff --git a/modules/gameservers/minecraft_modded/default.nix b/modules/gameservers/minecraft_modded/default.nix index 070933e..51053ba 100644 --- a/modules/gameservers/minecraft_modded/default.nix +++ b/modules/gameservers/minecraft_modded/default.nix @@ -76,7 +76,7 @@ in { Group = "minecraft"; WorkingDirectory = srv.data_dir; UMask = "0007"; - ExecStart = "${pkgs.bash}/bin/bash ${srv.start_file}"; + ExecStart = "${pkgs.openjdk21}/bin/java -Xms4G -Xmx12G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -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 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true @libraries/net/neoforged/neoforge/21.1.211/unix_args.txt"; #ExecStart = "${srv.data_dir}/${srv.start_file}"; Restart = "on-failure"; KillMode = "process"; diff --git a/modules/homelab/glance/default.nix b/modules/homelab/glance/default.nix index 4f908a7..080ce4b 100644 --- a/modules/homelab/glance/default.nix +++ b/modules/homelab/glance/default.nix @@ -242,6 +242,13 @@ in cache = "5s"; template = "
\n
\n {{ if .JSON.Bool \"online\" }}\n \n {{ else }}\n \n \n \n {{ end }}\n
\n\n
\n \n {{ .JSON.String \"host\" }}\n {{ if .JSON.Bool \"online\" }}\n \n {{ else }}\n \n {{ end }}\n \n\n \n
\n
"; } + { + type = "custom-api"; + title = "cobblemon"; + url = "https://api.mcstatus.io/v2/status/java/cobblemon.recoil.pro"; + cache = "5s"; + template = "
\n
\n {{ if .JSON.Bool \"online\" }}\n \n {{ else }}\n \n \n \n {{ end }}\n
\n\n
\n \n {{ .JSON.String \"host\" }}\n {{ if .JSON.Bool \"online\" }}\n \n {{ else }}\n \n {{ end }}\n \n\n \n
\n
"; + } ]; } {