diff --git a/hosts/Infini-DL360/minecraft.nix b/hosts/Infini-DL360/minecraft.nix index 67847ac..ea1d102 100644 --- a/hosts/Infini-DL360/minecraft.nix +++ b/hosts/Infini-DL360/minecraft.nix @@ -11,6 +11,14 @@ let unsup = [ "-javaagent:${pkgs.unsup}" ]; + drasl = [ + "-Dminecraft.api.env=custom" + "-Dminecraft.api.auth.host=https://drasl.inx.moe/auth" + "-Dminecraft.api.account.host=https://drasl.inx.moe/account" + "-Dminecraft.api.session.host=https://drasl.inx.moe/session" + "-Dminecraft.api.services.host=https://drasl.inx.moe/services" + ]; + withJava21 = minecraft: minecraft.override { jre_headless = pkgs.openjdk21; }; withVersion = loaderVersion: minecraft: minecraft.override { inherit loaderVersion; }; @@ -36,4 +44,19 @@ in ''; }; }; + + services.minecraft-servers.servers.aquamidoge = { + enable = true; + autoStart = false; + jvmOpts = java21 ++ (ram "8G") ++ unsup ++ drasl; + package = minecraftServers.quilt-1_19_2 |> withJava21 |> withVersion "0.28.1"; + serverProperties = { + motd = "A server with friends and an uncreative name"; + difficulty = "hard"; + allow-flight = true; + enforce-secure-profile = false; + server-port = 25676; + spawn-protection = 0; + }; + }; }