Server/minecraft: make vr locals server
This commit is contained in:
parent
5bf5c9f737
commit
100f7ec33e
2 changed files with 24 additions and 0 deletions
|
|
@ -14,5 +14,6 @@
|
|||
./caddy.nix
|
||||
./dns.nix
|
||||
./rust_motd.nix
|
||||
./minecraft.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
23
roles/server/minecraft.nix
Normal file
23
roles/server/minecraft.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{pkgs, lib, ...}: {
|
||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||
"minecraft-server"
|
||||
];
|
||||
|
||||
services.minecraft-servers = {
|
||||
enable = true;
|
||||
eula = true;
|
||||
openFirewall = true;
|
||||
servers = {
|
||||
vrlocals = {
|
||||
enable = true;
|
||||
package = pkgs.fabricServers.fabric-1_20_1;
|
||||
serverProperties = {
|
||||
motd = "Test server. Don't build anything important!";
|
||||
server-port = 25565;
|
||||
enable-command-block = true;
|
||||
sync-chunk-writes = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue