Make the minecraft stuff work again

This commit is contained in:
Jimbo 2025-02-18 17:10:54 -05:00
parent cb42b5c0e4
commit 78ac018a11
7 changed files with 68 additions and 35 deletions

View file

@ -40,8 +40,8 @@
sha256 = "19jwfymqgvjk0vkm1blhq2q6gi7jkgqznp6bxc3k1sqw4hh5raj0";
};
"plugins/LuckPerms.jar" = builtins.fetchurl {
url = "https://download.luckperms.net/1556/bukkit/loader/LuckPerms-Bukkit-5.4.141.jar";
sha256 = "02ad0dl34vdk6b1wyflqa6wq440xrh5w7yf3z3w1x1g089myddw4";
url = "https://download.luckperms.net/1571/bukkit/loader/LuckPerms-Bukkit-5.4.154.jar";
sha256 = "0ls539d99h4bc3mh0h84gdmgh8lxjakr9rp0il81m695j4j2l5mz";
};
"plugins/ProtocolLib.jar" = builtins.fetchurl {
url = "https://ci.dmulloy2.net/job/ProtocolLib/733/artifact/build/libs/ProtocolLib.jar";

View file

@ -2,24 +2,20 @@
{
imports = [
minecraft.nixosModules.minecraft-servers
./servers/velocity
./servers/dewdemolisher
./servers/johnside
./servers/roguecraft
./servers/blockworld
./servers/uberbeta
./servers/default.nix
];
config = lib.mkIf config.system.server.enable {
nixpkgs.overlays = [ minecraft.overlay ];
nixpkgs = {
config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "minecraft-server" ];
overlays = [ minecraft.overlay ];
};
services.minecraft-servers = {
enable = true;
eula = true;
};
environment.persistence."/persist".directories = [
"/srv/minecraft"
];
environment.persistence."/persist".directories = [ "/srv/minecraft" ];
};
}

View file

@ -0,0 +1,12 @@
{ ... }:
{
imports = [
./velocity
./dewdemolisher
./johnside
./roguecraft
./skyblock
./blockworld
./uberbeta
];
}

View file

@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
let
common = import ../../common { inherit pkgs; };
in {
services = {
minecraft-servers.servers.skyblock = {
package = pkgs.paperServers.paper-1_21_4;
jvmOpts = "-Xmx2000M";
serverProperties = common.serverProperties // {
difficulty = 3;
server-port = 30015;
motd = "\\u00A7l\\u00A7aBlocking in the sky";
};
whitelist = common.whitelist;
symlinks = common.paperSymlinks;
files = common.configFiles;
};
ddclient.domains = lib.mkIf config.services.minecraft-servers.servers.dewdemolisher.enable [ "skyblock.${config.domains.p2}" ];
};
}

View file

@ -15,8 +15,8 @@ in {
sha256 = "1hxdf38qzpzdnyn2gn1152fyd54bi37i0ayc82dgcjf0qrcbmv0c";
};
"plugins/LuckPerms.jar" = builtins.fetchurl {
url = "https://download.luckperms.net/1556/velocity/LuckPerms-Velocity-5.4.141.jar";
sha256 = "0j5f7r3g8h4f8z8ppakwfk96hijp3slr0vxyj9v8x4h8w5rcl9d1";
url = "https://download.luckperms.net/1571/velocity/LuckPerms-Velocity-5.4.154.jar";
sha256 = "03kqgxrf6ssclrwgyfxs521b7kswmpkk90kdwyaajkkx8hqvbqlc";
};
"plugins/SkinsRestorer.jar" = builtins.fetchurl {
url = "https://github.com/SkinsRestorer/SkinsRestorer/releases/download/15.4.2/SkinsRestorer.jar";