2020-10-29 07:50:18 +00:00
|
|
|
{ pkgs, ... }: let
|
2018-01-15 23:02:38 +00:00
|
|
|
|
2020-10-29 07:50:18 +00:00
|
|
|
unstable = import <nixpkgs-unstable> { config.allowUnfree = true; };
|
|
|
|
|
|
|
|
in {
|
|
|
|
services.minecraft-server = {
|
|
|
|
enable = true;
|
|
|
|
eula = true;
|
|
|
|
package = unstable.minecraft-server;
|
2018-01-15 23:02:38 +00:00
|
|
|
};
|
|
|
|
krebs.iptables.tables.filter.INPUT.rules = [
|
|
|
|
{ predicate = "-p tcp --dport 25565"; target = "ACCEPT"; }
|
|
|
|
{ predicate = "-p udp --dport 25565"; target = "ACCEPT"; }
|
2018-02-19 08:46:50 +00:00
|
|
|
{ predicate = "-p tcp --dport 8123"; target = "ACCEPT"; }
|
2018-01-15 23:02:38 +00:00
|
|
|
];
|
|
|
|
}
|