summaryrefslogtreecommitdiffstats
path: root/lass/2configs/minecraft.nix
blob: 34da3047ed28cfbf18ed53523fe6ca450fad60fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ pkgs, ... }: let

  unstable = import <nixpkgs-unstable> { config.allowUnfree = true; };

in {
  services.minecraft-server = {
    enable = true;
    eula = true;
    package = unstable.minecraft-server;
  };
  krebs.iptables.tables.filter.INPUT.rules = [
    { predicate = "-p tcp --dport 25565"; target = "ACCEPT"; }
    { predicate = "-p udp --dport 25565"; target = "ACCEPT"; }
  ];
}