1
0

Migrate to new minecraft-server module

This commit is contained in:
clerie 2021-02-10 19:10:26 +01:00
parent 765eaf332d
commit 097ea51d2d

View File

@ -28,16 +28,11 @@ in {
networking.defaultGateway6 = { address = "2001:638:904:ffcb::1"; interface = "ens18"; }; 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" ]; networking.nameservers = [ "2001:638:904:ffcc::3" "2001:638:904:ffcc::4" "141.24.40.3" "141.24.40.4" ];
services.minecraft-server = { clerie.minecraft-server.servers.aerilon.enable = true; # port 25565
enable = true; clerie.minecraft-server.servers.riese.enable = true; # port 25566
eula = true; clerie.minecraft-server.servers.chaos.enable = true; # port 25568
dataDir = "/var/lib/minecraft-server";
package = pkgs.papermc;
jvmOpts = "-Xmx4G -Xms1G";
};
networking.firewall.allowedUDPPorts = [ 25565 ]; networking.firewall.allowedTCPPorts = [ 25565 25566 25568 ];
networking.firewall.allowedTCPPorts = [ 25565 ];
system.stateVersion = "21.03"; system.stateVersion = "21.03";
} }