diff options
| author | Alexander Kassouni <alex@kassouni.net> | 2026-09-27 19:14:43 -0700 |
|---|---|---|
| committer | Alexander Kassouni <alex@kassouni.net> | 2026-09-27 19:14:43 -0700 |
| commit | 0ac0a0837698558e4e63a9f7ea31890c99ba5520 (patch) | |
| tree | 97e32cd7105a1541888e33c96f93f5babbdbcca3 /minecraft.nix | |
| parent | 17e4cb65f02fbc6e167650dfedf00c6ab4c83de2 (diff) | |
dont publish rcon port
Diffstat (limited to 'minecraft.nix')
| -rw-r--r-- | minecraft.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/minecraft.nix b/minecraft.nix index 8146b30..1926923 100644 --- a/minecraft.nix +++ b/minecraft.nix @@ -10,11 +10,15 @@ in { environment.systemPackages = [ pkgs.mcrcon ]; + networking.firewall.allowedTCPPorts = [ 25565 ]; + networking.firewall.allowedUDPPorts = [ 25565 ]; + services.minecraft-server = { enable = true; package = unstable.minecraft-server; eula = true; - openFirewall = true; + # openFirewall would also open rcon.port, so open the game port by hand + openFirewall = false; declarative = true; whitelist = { mr_5aturn = "2b811fad-e419-401e-9185-70ab279219b5"; |