about summary refs log tree commit diff
path: root/users/sterni/modules/default.nix
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-06-06T10·33+0200
committersterni <sternenseemann@systemli.org>2022-11-26T15·38+0000
commit6ef6e9c97f7fbcb368940fb56530075e2023498e (patch)
tree48bdd79f49fa12c989dd88103df80ef194ad2e92 /users/sterni/modules/default.nix
parent3b6bdc8c72057434859f3520a8cead42cc6cfb19 (diff)
feat(sterni/modules): module for fabric minecraft servers r/5334
This adds the module I've been using for running my minecraft servers.
It is inspired by the declarative minecraft server module in nixpkgs,
but

* does not support a non-declarative mode.

* supports more than one server on the same machine.

* patches the fabric mod loader into the server.jar on startup.

* its stopping mechanism is more robust: It issues a `save-all` and
  `stop` command over RCON and uses flock(1) for waiting on the
  server's shutdown instead of relying on checking for the PID
  via kill(1) in a loop.

It has some gaps in terms of features that I personally don't need, but
can be filled in over time.

Change-Id: I31b9139cab41a6398e5a08ecc72be33cd021ed2e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7291
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/sterni/modules/default.nix')
-rw-r--r--users/sterni/modules/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/users/sterni/modules/default.nix b/users/sterni/modules/default.nix
new file mode 100644
index 000000000000..5cc8be3cc6ce
--- /dev/null
+++ b/users/sterni/modules/default.nix
@@ -0,0 +1,2 @@
+# Stop readTree from looking at this directory
+_: { }