parent
158a817ae6
commit
e1d375b8f2
|
@ -1,7 +1,7 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ../../common ];
|
imports = [ ../../common ./minecraft.nix ];
|
||||||
|
|
||||||
users.motd = builtins.readFile ./motd;
|
users.motd = builtins.readFile ./motd;
|
||||||
|
|
||||||
|
|
|
@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue