From b397fd0cca62c3144a6df996e8620234590b63cd Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Wed, 7 Jun 2023 20:35:27 +0000 Subject: [PATCH] Not working right now. --- web/mc-ahoneybun-net.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 web/mc-ahoneybun-net.nix diff --git a/web/mc-ahoneybun-net.nix b/web/mc-ahoneybun-net.nix new file mode 100644 index 0000000..1761e68 --- /dev/null +++ b/web/mc-ahoneybun-net.nix @@ -0,0 +1,29 @@ +{ config, pkgs, ... }: + +{ + services.minecraft-server = { + enable = true; + eula = true; + openFirewall = true; + declarative = true; + + # see here for more info: https://minecraft.gamepedia.com/Server.properties#server.properties + serverProperties = { + server-port = 25565; + gamemode = "survival"; + motd = "NixOS Minecraft server"; + max-players = 5; + enable-rcon = true; + enable-query = true; + # This password can be used to administer your minecraft server. + # Exact details as to how will be explained later. If you want + # you can replace this with another password. +# rcon.password = "hunter2"; +# query.port = 25565; + level-seed = "10292992"; + }; + }; + + # enable closed source packages such as the minecraft server + nixpkgs.config.allowUnfree = true; +}