feat: added minecraft server

This commit is contained in:
Nick 2025-11-18 02:05:01 -06:00
parent 5e8b59c7ad
commit e824bcaae1
5 changed files with 28 additions and 10 deletions

View file

@ -44,12 +44,13 @@ in
motd = "A cool Minecraft server powered by NixOS";
online-mode = true;
pvp = true;
server-ip = hostCfg.localhost.address1;
server-port = serviceCfg.ports.port0;
spawn-animals = true;
spawn-monsters = true;
spawn-npcs = true;
spawn-protection = 16;
view-dtstance = 32;
view-distance = 32;
white-list = true;
};
whitelist = {
@ -182,4 +183,6 @@ in
mode = "0600";
};
};
networking.firewall.allowedTCPPorts = [ serviceCfg.ports.port0 ];
}