Compare commits
2 commits
7693a23c84
...
e9400208dc
| Author | SHA1 | Date | |
|---|---|---|---|
| e9400208dc | |||
| f1d468f26b |
1 changed files with 11 additions and 8 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";
|
auth-server = "https://mc.satr14.my.id"; # TODO: self hosted drasl server
|
||||||
modpack = pkgs.fetchPackwizModpack {
|
modpack = pkgs.fetchPackwizModpack {
|
||||||
url = "https://git.satr14.my.id/satr14/server-modpack/raw/commit/a1372bf1b044fd178d5ca29a8b01805f56c9ee4f/pack.toml";
|
url = "https://git.satr14.my.id/satr14/server-modpack/raw/commit/e8a47c7f6dbf26cf436d40d68eed17ac4a98decc/pack.toml";
|
||||||
packHash = "sha256-TCBGa4W+hi6iMzaI9GkapgaQGib0mvhnOObTdEgO/Rs=";
|
packHash = "";
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
imports = [ inputs.mc.nixosModules.minecraft-servers ];
|
imports = [ inputs.mc.nixosModules.minecraft-servers ];
|
||||||
|
|
@ -27,15 +27,18 @@ 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