Configure bluemap

This commit is contained in:
Paul-Henri Froidmont 2025-12-10 13:17:37 +01:00
parent 161e9aa71f
commit 7afc473884
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
2 changed files with 38 additions and 1 deletions

View file

@ -35,7 +35,6 @@ in
Xavier1258 = "e9059cf3-00ef-47a3-92ee-4e4a3fea0e6d";
denisjulien3333 = "3c93e1a2-42d8-4a51-9fe3-924c8e8d5b07";
};
dataDir = "/nix/var/data/minecraft";
};
services.bluemap = {
@ -45,6 +44,43 @@ in
host = "mcmap.${config.networking.domain}";
enableNginx = true;
enableRender = true;
coreSettings = {
render-thread-count = -4;
};
maps = {
"overworld" = {
world = config.services.bluemap.defaultWorld;
ambient-light = 0.1;
cave-detection-ocean-floor = -5;
};
"nether" = {
world = "${config.services.bluemap.defaultWorld}/DIM-1";
sorting = 100;
sky-color = "#290000";
void-color = "#150000";
ambient-light = 0.6;
world-sky-light = 0;
remove-caves-below-y = -10000;
cave-detection-ocean-floor = -5;
cave-detection-uses-block-light = true;
# render-mask = [
# { max-y = 90; }
# ];
};
"end" = {
world = "${config.services.bluemap.defaultWorld}/DIM1";
sorting = 200;
sky-color = "#080010";
void-color = "#080010";
ambient-light = 0.6;
world-sky-light = 0;
remove-caves-below-y = -10000;
cave-detection-ocean-floor = -5;
};
};
};
services.nginx.virtualHosts."mcmap.${config.networking.domain}" = {