Add new Minecraft server
This commit is contained in:
parent
5cb656fb27
commit
a05718f708
4 changed files with 25 additions and 3 deletions
|
@ -24,6 +24,7 @@
|
|||
|
||||
services.minecraft-servers.servers = {
|
||||
velocity.enable = true;
|
||||
cornworld.enable = true;
|
||||
skyblock.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
common = import ../../common { inherit pkgs; };
|
||||
in {
|
||||
services = {
|
||||
minecraft-servers.servers.cornworld = {
|
||||
package = pkgs.paperServers.paper-1_21_4;
|
||||
jvmOpts = "-Xmx2000M";
|
||||
serverProperties = common.serverProperties // {
|
||||
difficulty = 3;
|
||||
server-port = 30016;
|
||||
motd = "\\u00a7e\\u00a7lFreecorn Sever";
|
||||
};
|
||||
whitelist = common.whitelist;
|
||||
symlinks = common.paperSymlinks;
|
||||
files = common.configFiles;
|
||||
};
|
||||
cloudflare-dyndns.domains = lib.mkIf config.services.minecraft-servers.servers.cornworld.enable [ "corn.nixfox.ca" ];
|
||||
};
|
||||
}
|
|
@ -1,12 +1,13 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./velocity
|
||||
./blockworld
|
||||
./cornworld
|
||||
./dewdemolisher
|
||||
./johnside
|
||||
./roguecraft
|
||||
./skyblock
|
||||
./blockworld
|
||||
./uberbeta
|
||||
./velocity
|
||||
];
|
||||
}
|
||||
|
|
|
@ -15,6 +15,6 @@ in {
|
|||
symlinks = common.paperSymlinks;
|
||||
files = common.configFiles;
|
||||
};
|
||||
cloudflare-dyndns.domains = lib.mkIf config.services.minecraft-servers.servers.dewdemolisher.enable [ "skyblock.nixfox.ca" ];
|
||||
cloudflare-dyndns.domains = lib.mkIf config.services.minecraft-servers.servers.skyblock.enable [ "skyblock.nixfox.ca" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue