From 7d2be949cad00463c08b81289bc80f52861bdc23 Mon Sep 17 00:00:00 2001 From: satr14 Date: Sat, 9 May 2026 23:43:30 +0700 Subject: [PATCH] startpost remove --- modules/system/homelab/mc.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/modules/system/homelab/mc.nix b/modules/system/homelab/mc.nix index 9fc0966..51444c4 100644 --- a/modules/system/homelab/mc.nix +++ b/modules/system/homelab/mc.nix @@ -53,15 +53,16 @@ in { "-XX:SoftMaxHeapSize=${toString (ram-allocation-mb - 2048)}M" ]; in lib.concatStringsSep " " flags; - extraStartPost = let gamerules = { - "locator_bar" = false; - "mob_explosion_drop_decay" = false; - # "reduced_debug_info" = false; - # "global_sound_events" = false; - }; in lib.concatStringsSep "\n" (map - (rule: "${pkgs.rcon-cli}/bin/rcon-cli --password ${rcon-pass} gamerule ${rule} ${toString (gamerules.${rule})}") - (lib.attrNames gamerules) - ); + # extraStartPost = let gamerules = { + # "locator_bar" = false; + # "mob_explosion_drop_decay" = false; + # # "reduced_debug_info" = false; + # # "global_sound_events" = false; + # }; in lib.concatStringsSep "\n" (map + # (rule: "${pkgs.rcon-cli}/bin/rcon-cli --password ${rcon-pass} gamerule ${rule} ${toString (gamerules.${rule})}") + # (lib.attrNames gamerules) + # ); + # TODO: figure out how to set gamerules on start (script above runs **before** server ready) serverProperties = { server-port = 25565;