Infini-DL360/minecraft: add aquamidoge server
This commit is contained in:
parent
ae9922cefa
commit
46cc98986f
1 changed files with 23 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue