This commit is contained in:
Henri Dohmen 2025-11-09 22:33:40 +01:00
parent a0020d7094
commit 41b4d6ca64
Signed by: hd
GPG key ID: AB79213B044674AE
3 changed files with 23 additions and 0 deletions

View file

@ -1,5 +1,6 @@
{
var,
pkgs,
config,
secrets,
...
@ -32,10 +33,27 @@
enable = true;
settings.PasswordAuthentication = false;
};
minecraft-server = {
enable = true;
package = pkgs.papermcServers.papermc-1_21_9;
eula = true;
declarative = true;
serverProperties = {
level-seed = "hd";
difficulty = 3;
spawn-protection = 0;
server-ip = "0.0.0.0";
};
jvmOpts = "-Xms2048M -Xmx4096M";
};
};
networking.firewall = {
enable = true;
interfaces."wg0" = {
allowedTCPPorts = [ 25565 ];
};
allowedTCPPorts = [
80
443