From 0971f01d66fb80edc98932a28ebc6ac183a5e9d2 Mon Sep 17 00:00:00 2001 From: niten Date: Fri, 7 Jul 2023 10:59:40 -0700 Subject: [PATCH] Add options for query & rcon ports. --- lib/fudo/minecraft-clj.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/fudo/minecraft-clj.nix b/lib/fudo/minecraft-clj.nix index 28c802c..a907cd5 100644 --- a/lib/fudo/minecraft-clj.nix +++ b/lib/fudo/minecraft-clj.nix @@ -73,6 +73,18 @@ let default = 25565; }; + query-port = mkOption { + type = port; + description = "Port for queries."; + default = 25566; + }; + + rcon-port = mkOption { + type = port; + description = "Port for remote commands."; + default = 25567; + }; + difficulty = mkOption { type = enum [ "peaceful" "easy" "medium" "hard" ]; description = "Difficulty setting of this server."; @@ -144,6 +156,8 @@ let server-port = worldOpts.port; hardcore = worldOpts.hardcore; pvp = worldOpts.pvp; + "query.port" = worldOpts.query-port; + "rcon.port" = worldOpts.rcon-port; }; toProps = attrs: