blob: d2a3672c57c4200e193ddab04a0fad967fde88b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{ 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"; }
{ predicate = "-p tcp --dport 8123"; target = "ACCEPT"; }
];
}
|