mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 13:29:22 +02:00
Move minecraft srver into module
This commit is contained in:
parent
91e34642d0
commit
58d0a8730c
3 changed files with 20 additions and 15 deletions
19
modules/minecraft-server/default.nix
Normal file
19
modules/minecraft-server/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
services.minecraft-server = {
|
||||
enable = true;
|
||||
eula = true;
|
||||
openFirewall = true;
|
||||
declarative = true;
|
||||
serverProperties = {
|
||||
difficulty = 3;
|
||||
enable-rcon = true;
|
||||
"rcon.password" = "test";
|
||||
motd = "\\u00A7cWake up to reality! Nothing ever goes as planned in this accursed world.☯";
|
||||
spawn-protection = 0;
|
||||
level-type = "minecraft:amplified";
|
||||
level-name = "amplified_world";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue