Migrate to new minecraft-server module
This commit is contained in:
parent
765eaf332d
commit
097ea51d2d
@ -28,16 +28,11 @@ in {
|
||||
networking.defaultGateway6 = { address = "2001:638:904:ffcb::1"; interface = "ens18"; };
|
||||
networking.nameservers = [ "2001:638:904:ffcc::3" "2001:638:904:ffcc::4" "141.24.40.3" "141.24.40.4" ];
|
||||
|
||||
services.minecraft-server = {
|
||||
enable = true;
|
||||
eula = true;
|
||||
dataDir = "/var/lib/minecraft-server";
|
||||
package = pkgs.papermc;
|
||||
jvmOpts = "-Xmx4G -Xms1G";
|
||||
};
|
||||
clerie.minecraft-server.servers.aerilon.enable = true; # port 25565
|
||||
clerie.minecraft-server.servers.riese.enable = true; # port 25566
|
||||
clerie.minecraft-server.servers.chaos.enable = true; # port 25568
|
||||
|
||||
networking.firewall.allowedUDPPorts = [ 25565 ];
|
||||
networking.firewall.allowedTCPPorts = [ 25565 ];
|
||||
networking.firewall.allowedTCPPorts = [ 25565 25566 25568 ];
|
||||
|
||||
system.stateVersion = "21.03";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user