mc
This commit is contained in:
parent
a0020d7094
commit
41b4d6ca64
3 changed files with 23 additions and 0 deletions
|
|
@ -11,6 +11,7 @@
|
|||
fd
|
||||
htop
|
||||
killall
|
||||
nettools
|
||||
podman-compose
|
||||
podman-tui
|
||||
ripgrep
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -68,6 +68,10 @@
|
|||
'';
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
prismlauncher
|
||||
];
|
||||
|
||||
# ====== DON'T CHANGE ======
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue