NixOS flake for easy declarative creation of minecraft server containers.
minecraft = {
enable = true;
default.hostAddress = "192.168.100.1";
servers = {
proxy = {
useDefault = false;
hostAddress = "192.168.100.1";
localAddress = "192.168.100.2";
bungeecord = {
enable = true;
online_mode = false;
listeners = [
{
host = "0.0.0.0:25565";
priorities = [ "lobby" ];
}
];
servers = {
lobby.address = "192.168.100.3";
main.address = "192.168.100.4";
};
};
plugins = with pkgs.mineflake; [ cleanmotd authmebungee ];
configs = {
"plugins/AuthMeBungee/config.yml".data.authServers = [ "lobby" ];
"plugins/CleanMotD/config.yml".data.motd.motds = [ "Cool server!" ];
};
package = pkgs.mineflake.waterfall;
};
lobby = {
localAddress = "192.168.100.3";
properties.enable = true;
properties.online-mode = false;
configs = {
"plugins/AuthMe/config.yml".data.Hooks = {
sendPlayerTo = "main";
bungeecord = true;
multiverse = false;
};
};
plugins = with pkgs.mineflake; [ authme essentialsx ];
};
main = {
localAddress = "192.168.100.4";
properties.enable = true;
properties.online-mode = false;
plugins = with pkgs.mineflake; [ coreprotect essentialsx ];
};
};
};
You can read the contributing guide for more information.
This project is licensed under the MIT License. See the LICENSE file for details.
In short, you can do whatever you want with this project. You must include the license file with your distribution, but you don't have to include the source code. But if you include a link to the original project, the author will be immensely pleased.
In addition, this project uses the following third-party software:
- nixpkgs - Licensed under the MIT License.
If you contribute to this project, please add your name to the list below.
- cofob - Author and maintainer