From 1991f5a290b466aa1e3ef66e9e00dd46823fe921 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Wed, 24 Dec 2025 11:01:56 +0900 Subject: [PATCH] modules/bluemap: declare 'name' option --- modules/bluemap.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/modules/bluemap.nix b/modules/bluemap.nix index 670afae..9e1921d 100644 --- a/modules/bluemap.nix +++ b/modules/bluemap.nix @@ -152,7 +152,7 @@ in { }; maps = mkOption { - type = lib.types.attrsOf (lib.types.submodule { + type = lib.types.attrsOf (lib.types.submodule ({ name, ... }: { options = { packs = mkOption { type = lib.types.path; @@ -168,6 +168,12 @@ in { type = lib.types.path; description = "Path to world folder containing the dimension to render"; }; + name = mkOption { + type = lib.types.str; + description = "The display name of this map (how this map will be named on the webapp)"; + default = name; + defaultText = lib.literalExpression ""; + }; }; }); description = '' @@ -177,16 +183,18 @@ in { ''; }; }; - }); + })); default = { "overworld".settings = { world = "${cfg.defaultWorld}"; + name = "Overworld"; ambient-light = 0.1; cave-detection-ocean-floor = -5; }; "nether".settings = { world = "${cfg.defaultWorld}/DIM-1"; + name = "Nether"; sorting = 100; sky-color = "#290000"; void-color = "#150000"; @@ -200,6 +208,7 @@ in { "end".settings = { world = "${cfg.defaultWorld}/DIM1"; + name "The End"; sorting = 200; sky-color = "#080010"; void-color = "#080010";