blob: 285a4552c20da9f846de0e2d20234bcb34795006 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{ pkgs, ... }: let
unstable = import <nixpkgs-unstable> { config.allowUnfree = true; };
in {
services.minecraft-server = {
enable = true;
eula = true;
package = unstable.minecraft-server;
};
networking.firewall.allowedTCPPorts = [ 25565 ];
networking.firewall.allowedUDPPorts = [ 25565 ];
}
|