mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-24 21:26:59 +01:00
Configure bluemap
This commit is contained in:
parent
161e9aa71f
commit
7afc473884
2 changed files with 38 additions and 1 deletions
|
|
@ -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}" = {
|
||||
|
|
|
|||
|
|
@ -250,6 +250,7 @@
|
|||
"/var/dkim"
|
||||
"/var/sieve"
|
||||
"/var/lib/nextcloud"
|
||||
config.services.minecraft-server.dataDir
|
||||
];
|
||||
patterns = [
|
||||
"- /nix/var/data/media"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue