feat(mc): add server zip downloader
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-01-30 21:04:11 -05:00
parent d0c3ccdda3
commit 522fe47749
4 changed files with 37 additions and 9 deletions

View file

@ -0,0 +1,14 @@
{
buildGo120Module,
curseforge-server-downloader-src,
lib,
...
}:
buildGo120Module {
pname = "curseforge-server-downloader";
version = "unstable";
src = curseforge-server-downloader-src;
doCheck = false;
vendorHash = null;
}

View file

@ -8,6 +8,10 @@
in { in {
imports = [nms.nixosModules.default]; imports = [nms.nixosModules.default];
environment.systemPackages = [
config.customPkgs.curseforge-server-downloader
];
services = { services = {
borgbackup.configs.mc = { borgbackup.configs.mc = {
paths = ["/var/lib/minecraft"]; paths = ["/var/lib/minecraft"];
@ -18,7 +22,6 @@ in {
user = mainUser; user = mainUser;
instances = let instances = let
jre8 = pkgs.temurin-bin-8;
jre17 = pkgs.temurin-bin-17; jre17 = pkgs.temurin-bin-17;
defaults = { defaults = {
@ -67,26 +70,37 @@ in {
// defaults; // defaults;
}; };
# Modded https://www.curseforge.com/minecraft/modpacks/nomi-ceu # Modded https://www.curseforge.com/minecraft/modpacks/steam-punk
nomi = { # curseforge-server-downloader --pack 643605 --version latest
steampunk = {
enable = false; enable = false;
jvmMaxAllocation = "10G"; jvmMaxAllocation = "12G";
jvmInitialAllocation = "2G"; jvmInitialAllocation = "2G";
jvmPackage = jre8; jvmPackage = jre17;
jvmOpts = ""; jvmOpts = "";
serverConfig = serverConfig =
{ {
server-port = 25569; server-port = 25569;
motd = "Nomi CEu Server, v1.7-alpha-2"; motd = "";
extra-options = { extra-options = {
allow-nether = true;
enable-command-block = true;
enable-status = true;
entity-broadcast-range-percentage = 100;
force-gamemode = false;
function-permission-level = 2;
gamemode = "survival";
generate-structures = true;
max-build-height = 256;
max-players = 8; max-players = 8;
difficulty = 1; difficulty = "normal";
view-distance = 10; view-distance = 12;
simulation-distance = 10; simulation-distance = 10;
level-type = "lostcities"; sync-chunk-writes = true;
use-native-transport = true;
}; };
} }
// defaults; // defaults;

Binary file not shown.

BIN
flake.nix

Binary file not shown.