commit 04defdd9078c8a7eec306e5a27ff255ef0f77fc8 parent 1af4d920031f500cdbeab52da3e56baf68041f11 Author: William Casarin <jb55@jb55.com> Date: Mon, 13 Dec 2021 08:53:44 -0800 minecraft server so I can play on LAN with elliott Signed-off-by: William Casarin <jb55@jb55.com> Diffstat:
M | nix-config/machines/monad/default.nix | | | 16 | ++++++++++++++++ |
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/nix-config/machines/monad/default.nix b/nix-config/machines/monad/default.nix @@ -256,6 +256,22 @@ in environment.systemPackages = [ pkgs.virt-manager ]; + services.minecraft-server.enable = true; + services.minecraft-server.eula = true; + services.minecraft-server.openFirewall = true; + services.minecraft-server.declarative = true; + services.minecraft-server.serverProperties = { + server-port = 25565; + difficulty = "normal"; + gamemode = "survival"; + force-gamemode = true; + max-players = 2; + motd = "NixOS Minecraft server!"; + white-list = false; + enable-rcon = true; + "rcon.password" = "minecraft"; + }; + virtualisation.virtualbox.host.enable = false; virtualisation.virtualbox.host.enableHardening = false; #virtualization.virtualbox.host.enableExtensionPack = true;