minecraft

Signed-off-by: Xe <me@christine.website>
This commit is contained in:
Cadey Ratio 2021-12-21 17:54:06 -05:00
parent 158a817ae6
commit e1d375b8f2
2 changed files with 20 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{ config, pkgs, ... }:
{
imports = [ ../../common ];
imports = [ ../../common ./minecraft.nix ];
users.motd = builtins.readFile ./motd;

19
hosts/logos/minecraft.nix Normal file
View File

@ -0,0 +1,19 @@
{ ... }: {
services.minecraft-server = {
enable = true;
eula =
true; # set to true if you agree to Mojang's EULA: https://account.mojang.com/documents/minecraft_eula
declarative = true;
# see here for more info: https://minecraft.gamepedia.com/Server.properties#server.properties
serverProperties = {
server-port = 25565;
gamemode = "survival";
motd = "logos";
max-players = 20;
enable-rcon = true;
"rcon.password" = "hunter2";
level-seed = "10292992";
};
};
}