minecraft-server: init

This commit is contained in:
Rouven Seifert 2024-07-22 13:26:53 +02:00
parent 21a1000dad
commit 85f8932908
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
2 changed files with 14 additions and 0 deletions

View file

@ -77,6 +77,7 @@
./modules/courses ./modules/courses
./modules/wiki ./modules/wiki
./modules/matrix ./modules/matrix
./modules/minecraft
./modules/nix-serve.nix ./modules/nix-serve.nix
./modules/hedgedoc.nix ./modules/hedgedoc.nix

View file

@ -0,0 +1,13 @@
{ ... }:
{
services.minecraft-server = {
enable = true;
eula = true;
};
networking.firewall = {
extraInputRules = ''
ip saddr { 141.30.0.0/16, 141.76.0.0/16} tcp dport 25565 accept comment "Allow ldaps access from office nets and podman"
'';
};
}