aboutsummaryrefslogtreecommitdiff
path: root/nixos/games/minecraft.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/games/minecraft.nix')
-rw-r--r--nixos/games/minecraft.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/games/minecraft.nix b/nixos/games/minecraft.nix
index 594f8bd..6507764 100644
--- a/nixos/games/minecraft.nix
+++ b/nixos/games/minecraft.nix
@@ -3,4 +3,16 @@
environment.systemPackages = with pkgs; [
prismlauncher
];
+
+ # you do need to enable all of the ports because minecraft LAN uses a fucking
+ # random one
+ networking.firewall = {
+ enable = true;
+ allowedTCPPortRanges = [
+ { from = 1024; to = 65535; }
+ ];
+ allowedUDPPortRanges = [
+ { from = 1024; to = 65535; }
+ ];
+ };
}