This neoforge server isn't freaking working

This commit is contained in:
Jimbo 2024-09-17 21:45:44 -04:00
parent c240c3f00d
commit c3ee9a15ed
15 changed files with 3445 additions and 11 deletions

View file

@ -25,7 +25,7 @@
};
# Common plugins
symlinks = {
paperSymlinks = {
"plugins/Backuper.jar" = builtins.fetchurl {
url = "https://cdn.modrinth.com/data/7cMAqMND/versions/nkcNIvUw/Backuper-3.0.1.jar";
sha256 = "081hvs7khd9s8598i59ai8n0idp85rgc89m9hpfajwym9rmy7il4";
@ -58,8 +58,10 @@
url = "https://cdn.modrinth.com/data/9eGKb6K1/versions/nS19YToN/voicechat-bukkit-2.5.20.jar";
sha256 = "023wjx0zxf9rc2x9vsqg398wapz0nlwfs5g6c8pci3qx75i5s4jx";
};
};
# Config files
# Config files
configSymlinks = {
"plugins/Essentials/config.yml" = ./essentialsconfig.yml;
"plugins/voicechat/voicechat-server.properties" = ./vcserver.properties;
};

View file

@ -6,6 +6,7 @@
./servers/johnside.nix
./servers/blockworld.nix
./servers/uberbeta.nix
#./servers/freaktards.nix
];
nixpkgs.overlays = [ inputs.nix-minecraft.overlay ];

View file

@ -5,13 +5,13 @@ in {
enable = true;
autoStart = false;
package = pkgs.paperServers.paper-1_21_1;
jvmOpts = "-Xmx4084M";
jvmOpts = "-Xmx3072M";
serverProperties = common.serverProperties // {
difficulty = 2;
server-port = 30012;
motd = "§fArchival §l§n§cBloxelcom §r§fMinecraft server.";
};
whitelist = common.whitelist;
symlinks = common.symlinks;
symlinks = common.paperSymlinks // common.configSymlinks;
};
}

View file

@ -4,13 +4,13 @@ in {
services.minecraft-servers.servers.dewdemolisher = {
enable = true;
package = pkgs.paperServers.paper-1_21_1;
jvmOpts = "-Xmx4084M";
jvmOpts = "-Xmx3072M";
serverProperties = common.serverProperties // {
difficulty = 2;
server-port = 30010;
motd = "§l§aDew Demolisher is here.";
};
whitelist = common.whitelist;
symlinks = common.symlinks;
symlinks = common.paperSymlinks // common.configSymlinks;
};
}

View file

@ -0,0 +1,18 @@
{ pkgs, ... }: let
common = import ../common.nix { inherit pkgs; };
neoForge = pkgs.writeShellScriptBin "minecraft-server" ''
${pkgs.temurin-jre-bin}/bin/java @user_jvm_args.txt @libraries/net/neoforged/neoforge/21.1.51/unix_args.txt "$@"
'';
in {
services.minecraft-servers.servers.freaktards = {
enable = true;
package = neoForge;
serverProperties = common.serverProperties // {
difficulty = 1;
server-port = 30013;
motd = "\\u00A7l\\u00A7o𝓯𝓻𝓮𝓪𝓴\\u00A7r\\u00A7ltards official";
};
whitelist = common.whitelist;
symlinks = common.configSymlinks;
};
}

View file

@ -5,14 +5,14 @@ in {
minecraft-servers.servers.johnside = {
enable = true;
package = pkgs.paperServers.paper-1_20_6;
jvmOpts = "-Xmx4084M";
jvmOpts = "-Xmx3072M";
serverProperties = common.serverProperties // {
difficulty = 2;
server-port = 30009;
motd = "§l§9Johnside SMP§r §l§fworld for §4John lovers only.";
};
whitelist = common.whitelist;
symlinks = common.symlinks // {
symlinks = common.paperSymlinks // common.configSymlinks // {
"plugins/BlueMap.jar" = builtins.fetchurl {
url = "https://cdn.modrinth.com/data/swbUV1cr/versions/TL5ElRWX/BlueMap-5.3-spigot.jar";
sha256 = "08ls3wk0333vjg49kcmri884pcgm2xk9xdhwcxyffbh4ra0xrlbw";