mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 04:02:55 +00:00
add minecraft server
This commit is contained in:
parent
c4c75cd587
commit
01e71e5810
@ -78,5 +78,6 @@ nixpkgs.lib.nixosSystem {
|
|||||||
../../modules/services/nextcloud.nix
|
../../modules/services/nextcloud.nix
|
||||||
../../modules/services/transmission.nix
|
../../modules/services/transmission.nix
|
||||||
../../modules/services/metrics.nix
|
../../modules/services/metrics.nix
|
||||||
|
../../modules/gaming/minecraft-server.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
32
modules/gaming/minecraft-server.nix
Normal file
32
modules/gaming/minecraft-server.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{ ... }: {
|
||||||
|
|
||||||
|
unfreePackages = [ "minecraft-server" ];
|
||||||
|
|
||||||
|
services.minecraft-server = {
|
||||||
|
enable = true;
|
||||||
|
eula = true;
|
||||||
|
declarative = true;
|
||||||
|
whitelist = { };
|
||||||
|
openFirewall = true;
|
||||||
|
serverProperties = {
|
||||||
|
server-port = 25565;
|
||||||
|
difficulty = "normal";
|
||||||
|
gamemode = "survival";
|
||||||
|
white-list = false;
|
||||||
|
enforce-whitelist = false;
|
||||||
|
level-name = "world";
|
||||||
|
motd = "Welcome!";
|
||||||
|
pvp = true;
|
||||||
|
player-idle-timeout = 30;
|
||||||
|
generate-structures = true;
|
||||||
|
max-players = 20;
|
||||||
|
snooper-enabled = false;
|
||||||
|
spawn-npcs = true;
|
||||||
|
spawn-animals = true;
|
||||||
|
spawn-monsters = true;
|
||||||
|
allow-nether = true;
|
||||||
|
allow-flight = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user