aboutsummaryrefslogtreecommitdiff
path: root/nixos/games/minecraft.nix
blob: 6507764f11f92db7daf6e096e0ffbb3a241396c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ config, pkgs, ... }:
{
  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; }
    ];
  };
}