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

@ -11,6 +11,7 @@
fd fd
htop htop
killall killall
nettools
podman-compose podman-compose
podman-tui podman-tui
ripgrep ripgrep

View file

@ -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

View file

@ -68,6 +68,10 @@
''; '';
}; };
environment.systemPackages = with pkgs; [
prismlauncher
];
# ====== DON'T CHANGE ====== # ====== DON'T CHANGE ======
system.stateVersion = "25.05"; system.stateVersion = "25.05";
} }