Compare commits
No commits in common. "e9400208dcd446d64117ddd69acebaa3bed98b9d" and "7693a23c84331f88367306c72995a917af9e453e" have entirely different histories.
e9400208dc
...
7693a23c84
1 changed files with 8 additions and 11 deletions
|
|
@ -1,9 +1,9 @@
|
||||||
{ inputs, lib, pkgs, ... }: let
|
{ inputs, lib, pkgs, ... }: let
|
||||||
ram-allocation = "10240M";
|
ram-allocation = "10240M";
|
||||||
auth-server = "https://mc.satr14.my.id"; # TODO: self hosted drasl server
|
auth-server = "https://mc.satr14.my.id";
|
||||||
modpack = pkgs.fetchPackwizModpack {
|
modpack = pkgs.fetchPackwizModpack {
|
||||||
url = "https://git.satr14.my.id/satr14/server-modpack/raw/commit/e8a47c7f6dbf26cf436d40d68eed17ac4a98decc/pack.toml";
|
url = "https://git.satr14.my.id/satr14/server-modpack/raw/commit/a1372bf1b044fd178d5ca29a8b01805f56c9ee4f/pack.toml";
|
||||||
packHash = "";
|
packHash = "sha256-TCBGa4W+hi6iMzaI9GkapgaQGib0mvhnOObTdEgO/Rs=";
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
imports = [ inputs.mc.nixosModules.minecraft-servers ];
|
imports = [ inputs.mc.nixosModules.minecraft-servers ];
|
||||||
|
|
@ -27,18 +27,15 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
jvmOpts = let
|
jvmOpts = let
|
||||||
|
authlib-injector = pkgs.fetchurl {
|
||||||
|
url = "https://github.com/yushijinhun/authlib-injector/releases/download/v1.2.7/authlib-injector-1.2.7.jar";
|
||||||
|
sha256 = "0av58bz0fn7wn9bf7sib62cn4vgkk4mr9mavpn2xiizzmk2lpwga";
|
||||||
|
};
|
||||||
flags = [
|
flags = [
|
||||||
"-Xms${ram-allocation}"
|
"-Xms${ram-allocation}"
|
||||||
"-Xmx${ram-allocation}"
|
"-Xmx${ram-allocation}"
|
||||||
|
"-javaagent:${authlib-injector}=${auth-server}"
|
||||||
"--add-modules=jdk.incubator.vector"
|
"--add-modules=jdk.incubator.vector"
|
||||||
|
|
||||||
# Custom auth server
|
|
||||||
"-Dminecraft.api.env=custom"
|
|
||||||
"-Dminecraft.api.auth.host=${auth-server}/auth"
|
|
||||||
"-Dminecraft.api.account.host=${auth-server}/account"
|
|
||||||
"-Dminecraft.api.profiles.host=${auth-server}/account"
|
|
||||||
"-Dminecraft.api.session.host=${auth-server}/session"
|
|
||||||
"-Dminecraft.api.services.host=${auth-server}/services"
|
|
||||||
|
|
||||||
# Aikar's GC flags
|
# Aikar's GC flags
|
||||||
"-XX:+UseG1GC"
|
"-XX:+UseG1GC"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue