mc
This commit is contained in:
parent
a0020d7094
commit
41b4d6ca64
3 changed files with 23 additions and 0 deletions
|
|
@ -11,6 +11,7 @@
|
||||||
fd
|
fd
|
||||||
htop
|
htop
|
||||||
killall
|
killall
|
||||||
|
nettools
|
||||||
podman-compose
|
podman-compose
|
||||||
podman-tui
|
podman-tui
|
||||||
ripgrep
|
ripgrep
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
var,
|
var,
|
||||||
|
pkgs,
|
||||||
config,
|
config,
|
||||||
secrets,
|
secrets,
|
||||||
...
|
...
|
||||||
|
|
@ -32,10 +33,27 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.PasswordAuthentication = false;
|
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 = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
interfaces."wg0" = {
|
||||||
|
allowedTCPPorts = [ 25565 ];
|
||||||
|
};
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
80
|
80
|
||||||
443
|
443
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,10 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
prismlauncher
|
||||||
|
];
|
||||||
|
|
||||||
# ====== DON'T CHANGE ======
|
# ====== DON'T CHANGE ======
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "25.05";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue