add minecraft server

This commit is contained in:
jopejoe1 2024-05-01 12:48:01 +02:00
parent ac7378ddc7
commit 98f99499ba
2 changed files with 21 additions and 0 deletions

View file

@ -106,6 +106,7 @@
"192.168.88.253" = [
self.nixosConfigurations.flora-mate.config.networking.hostName
"ap"
"minecraft"
];
"192.168.88.1" = [
"router"

View file

@ -42,4 +42,24 @@
PASSPHRASE = "VerySecurePassword69123";
};
};
services.minecraft-server = {
enable = true;
eula = true;
declarative = true;
openFirewall = true;
serverProperties = {
accepts-transfers = true;
difficulty = 3;
enable-command-block = true;
enable-rcon = true;
enable-status = true;
enable-query = true;
enforce-secure-profile = false;
max-players = 10;
motd = "IT3Bili Minecraft server!";
snooper-enabled = false;
spawn-protection = 0;
"rcon.password" = "AcceseGranted";
};
};
}