System Gen5 @ 2026-03-27-00:56:50 by jonas@harbor

This commit is contained in:
2026-03-27 00:56:52 +01:00
parent 206293fb46
commit 2da64a04e2

View File

@@ -8,7 +8,7 @@
modpack = pkgs.callPackage ./loadCurseForge.nix { modpack = pkgs.callPackage ./loadCurseForge.nix {
url = "https://mediafilez.forgecdn.net/files/7765/203/BMC3_Server_Pack_v44.zip"; url = "https://mediafilez.forgecdn.net/files/7765/203/BMC3_Server_Pack_v44.zip";
hash = ""; hash = "sha256-doqPzo9fhYM9ng/3RO6OPqhKA2ibfoaKx3Es7M0lpuU=";
}; };
mcVersion = modpack.variables.MINECRAFT_VERSION; mcVersion = modpack.variables.MINECRAFT_VERSION;
@@ -21,19 +21,20 @@ in {
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.minecraft-servers.servers.bmc3 = services.minecraft-servers = {
{ enable = true;
eula = true;
openFirewall = true;
servers.bmc3 = lib.optionalAttrs cfg.enable {
enable = true; enable = true;
eula = true;
}
# Prevent download of modpack if not enabled
// (lib.optionalAttrs cfg.enable {
package = pkgs."${loader}Servers".${serverVersion}.override {inherit loaderVersion;}; package = pkgs."${loader}Servers".${serverVersion}.override {inherit loaderVersion;};
jvmOpts = modpack.variables.JAVA_ARGS; jvmOpts = modpack.variables.JAVA_ARGS;
symlinks = { symlinks = {
"mods" = modpack.mods; "mods" = modpack.mods;
"config" = modpack.config; "config" = modpack.config;
}; };
}); };
};
}; };
} }