mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2025-12-27 02:52:32 +01:00
modules/bluemap: declare 'name' option
This commit is contained in:
@@ -152,7 +152,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
maps = mkOption {
|
maps = mkOption {
|
||||||
type = lib.types.attrsOf (lib.types.submodule {
|
type = lib.types.attrsOf (lib.types.submodule ({ name, ... }: {
|
||||||
options = {
|
options = {
|
||||||
packs = mkOption {
|
packs = mkOption {
|
||||||
type = lib.types.path;
|
type = lib.types.path;
|
||||||
@@ -168,6 +168,12 @@ in {
|
|||||||
type = lib.types.path;
|
type = lib.types.path;
|
||||||
description = "Path to world folder containing the dimension to render";
|
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 "<name>";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
description = ''
|
description = ''
|
||||||
@@ -177,16 +183,18 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
}));
|
||||||
default = {
|
default = {
|
||||||
"overworld".settings = {
|
"overworld".settings = {
|
||||||
world = "${cfg.defaultWorld}";
|
world = "${cfg.defaultWorld}";
|
||||||
|
name = "Overworld";
|
||||||
ambient-light = 0.1;
|
ambient-light = 0.1;
|
||||||
cave-detection-ocean-floor = -5;
|
cave-detection-ocean-floor = -5;
|
||||||
};
|
};
|
||||||
|
|
||||||
"nether".settings = {
|
"nether".settings = {
|
||||||
world = "${cfg.defaultWorld}/DIM-1";
|
world = "${cfg.defaultWorld}/DIM-1";
|
||||||
|
name = "Nether";
|
||||||
sorting = 100;
|
sorting = 100;
|
||||||
sky-color = "#290000";
|
sky-color = "#290000";
|
||||||
void-color = "#150000";
|
void-color = "#150000";
|
||||||
@@ -200,6 +208,7 @@ in {
|
|||||||
|
|
||||||
"end".settings = {
|
"end".settings = {
|
||||||
world = "${cfg.defaultWorld}/DIM1";
|
world = "${cfg.defaultWorld}/DIM1";
|
||||||
|
name "The End";
|
||||||
sorting = 200;
|
sorting = 200;
|
||||||
sky-color = "#080010";
|
sky-color = "#080010";
|
||||||
void-color = "#080010";
|
void-color = "#080010";
|
||||||
|
|||||||
Reference in New Issue
Block a user