From d993a39ab336fdff04e787976a26391269322e30 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sun, 9 Mar 2025 00:19:23 -0500 Subject: [PATCH] feat(servers): add Ancient Dawn minecraft server --- .../servivi/modules/minecraft/default.nix | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/configurations/servivi/modules/minecraft/default.nix b/configurations/servivi/modules/minecraft/default.nix index 9db22be7..43be23b4 100644 --- a/configurations/servivi/modules/minecraft/default.nix +++ b/configurations/servivi/modules/minecraft/default.nix @@ -31,6 +31,32 @@ allow-flight = true; }; in { + # Modded Ancient Dawn https://www.curseforge.com/minecraft/modpacks/the-ancient-dawn + ad = { + enable = true; + + jvmMaxAllocation = "10G"; + jvmInitialAllocation = "2G"; + jvmPackage = jre21; + + serverConfig = + { + server-port = 25560; + motd = "The Ancient Dawn gaming"; + + extra-options = { + difficulty = "hard"; + enable-command-block = true; + enforce-white-list = true; + white-list = true; + max-players = 10; + view-distance = 12; + simulation-distance = 8; + }; + } + // defaults; + }; + # Vanilla Survival sv = { enable = true;