Added multiple services and a module
This commit is contained in:
parent
5f558d597d
commit
67faa4a5a8
12 changed files with 236 additions and 79 deletions
17
hosts/servers/alexandria/services/gaming.nix
Normal file
17
hosts/servers/alexandria/services/gaming.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ specialArgs, inputs, config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
services.minecraft-server = {
|
||||
enable = true;
|
||||
eula = true;
|
||||
declarative = true;
|
||||
openFirewall = true;
|
||||
package = pkgs.papermc;
|
||||
serverProperties = {
|
||||
motd = "Bem-vindo a Alexandria";
|
||||
difficulty = "hard";
|
||||
gamemode = "survival";
|
||||
};
|
||||
dataDir = "/data/minecraft";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue