Standardize Minecraft variable formatting
This commit is contained in:
parent
9190e09c93
commit
9dbf18228b
12 changed files with 108 additions and 116 deletions
|
@ -1,66 +1,72 @@
|
|||
{ pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
# Common properties
|
||||
serverProperties = {
|
||||
enforce-secure-profile = false;
|
||||
max-players = 20;
|
||||
online-mode = false;
|
||||
spawn-protection = 0;
|
||||
view-distance = 10;
|
||||
simulation-distance = 10;
|
||||
white-list = true;
|
||||
options.services.minecraft-servers.common = lib.mkOption {
|
||||
type = lib.types.attrs;
|
||||
};
|
||||
|
||||
# Common whitelist
|
||||
whitelist = {
|
||||
K5G = "8656dc10-6050-4a17-b29e-88c4babbc54c";
|
||||
JimmJam = "2f7affee-e10b-450f-a5e2-44c79a14a109";
|
||||
Viceebun = "f583f591-ad9b-4a30-8d91-514881b31394";
|
||||
DewDemolisher = "9205524f-3886-483d-b471-82bb9905671a";
|
||||
Freecorn1854 = "8299cd8d-3cd4-4779-8180-0d9db6dc12a9";
|
||||
Freemid1854 = "cf430607-3c2e-4c8b-8183-28299e801fa5";
|
||||
Tinyattack09 = "aaa8e9e2-4e51-4925-b9df-8a9504aec5d5";
|
||||
Ankha3000 = "dd65a277-f618-411e-812c-900c9c7e82d9";
|
||||
catoiico = "01f10cdf-c146-437e-99b1-2278b5dbe420";
|
||||
Sp0ok7 = "016c3daa-3dd5-4631-ae79-3a6f48d7cbe6";
|
||||
PooxterMooxter = "c973f4b5-ab50-45e3-b3eb-36286a6f66aa";
|
||||
};
|
||||
config.services.minecraft-servers.common = {
|
||||
# Common properties
|
||||
serverProperties = {
|
||||
enforce-secure-profile = false;
|
||||
max-players = 20;
|
||||
online-mode = false;
|
||||
spawn-protection = 0;
|
||||
view-distance = 10;
|
||||
simulation-distance = 10;
|
||||
white-list = true;
|
||||
};
|
||||
|
||||
# Common plugins
|
||||
paperSymlinks = {
|
||||
"plugins/BungeeGuard.jar" = builtins.fetchurl {
|
||||
url = "https://github.com/lucko/BungeeGuard/releases/download/v1.3.3/BungeeGuard.jar";
|
||||
sha256 = "0cackavwk7kl71hn1i78hcvkdp7q81srq35nranpvysbmm8v34vk";
|
||||
# Common whitelist
|
||||
whitelist = {
|
||||
K5G = "8656dc10-6050-4a17-b29e-88c4babbc54c";
|
||||
JimmJam = "2f7affee-e10b-450f-a5e2-44c79a14a109";
|
||||
Viceebun = "f583f591-ad9b-4a30-8d91-514881b31394";
|
||||
DewDemolisher = "9205524f-3886-483d-b471-82bb9905671a";
|
||||
Freecorn1854 = "8299cd8d-3cd4-4779-8180-0d9db6dc12a9";
|
||||
Freemid1854 = "cf430607-3c2e-4c8b-8183-28299e801fa5";
|
||||
Tinyattack09 = "aaa8e9e2-4e51-4925-b9df-8a9504aec5d5";
|
||||
Ankha3000 = "dd65a277-f618-411e-812c-900c9c7e82d9";
|
||||
catoiico = "01f10cdf-c146-437e-99b1-2278b5dbe420";
|
||||
Sp0ok7 = "016c3daa-3dd5-4631-ae79-3a6f48d7cbe6";
|
||||
PooxterMooxter = "c973f4b5-ab50-45e3-b3eb-36286a6f66aa";
|
||||
};
|
||||
"plugins/EssentialsX.jar" = builtins.fetchurl {
|
||||
url = "https://github.com/EssentialsX/Essentials/releases/download/2.20.1/EssentialsX-2.20.1.jar";
|
||||
sha256 = "0hpm3fk073f2z8aah9l1inq27h9kd60jb2c1grcs8326v85s6bl0";
|
||||
};
|
||||
"plugins/EssentialsXChat.jar" = builtins.fetchurl {
|
||||
url = "https://github.com/EssentialsX/Essentials/releases/download/2.20.1/EssentialsXChat-2.20.1.jar";
|
||||
sha256 = "19jwfymqgvjk0vkm1blhq2q6gi7jkgqznp6bxc3k1sqw4hh5raj0";
|
||||
};
|
||||
"plugins/LuckPerms.jar" = builtins.fetchurl {
|
||||
url = "https://download.luckperms.net/1571/bukkit/loader/LuckPerms-Bukkit-5.4.154.jar";
|
||||
sha256 = "0ls539d99h4bc3mh0h84gdmgh8lxjakr9rp0il81m695j4j2l5mz";
|
||||
};
|
||||
"plugins/ProtocolLib.jar" = builtins.fetchurl {
|
||||
url = "https://ci.dmulloy2.net/job/ProtocolLib/733/artifact/build/libs/ProtocolLib.jar";
|
||||
sha256 = "1gslh24kk7dcqiqxphzy8x2nrqa58f8gl5ah0iyg1ndx3pvr4z9m";
|
||||
};
|
||||
"plugins/Vault.jar" = builtins.fetchurl {
|
||||
url = "https://github.com/MilkBowl/Vault/releases/download/1.7.3/Vault.jar";
|
||||
sha256 = "07fhfz7ycdlbmxsri11z02ywkby54g6wi9q0myxzap1syjbyvdd6";
|
||||
};
|
||||
"plugins/VoiceChat.jar" = builtins.fetchurl {
|
||||
url = "https://cdn.modrinth.com/data/9eGKb6K1/versions/Il6UOBoH/voicechat-bukkit-2.5.27.jar";
|
||||
sha256 = "1k95sy0hf74y80fzk7960ww8wk210phyaiqkn4q7wlagdq48mxqm";
|
||||
};
|
||||
};
|
||||
|
||||
# Config files
|
||||
configFiles = {
|
||||
"plugins/Essentials/config.yml" = ./essentialsconfig.yml;
|
||||
"plugins/voicechat/voicechat-server.properties" = ./vcserver.properties;
|
||||
# Common plugins
|
||||
paperSymlinks = {
|
||||
"plugins/BungeeGuard.jar" = builtins.fetchurl {
|
||||
url = "https://github.com/lucko/BungeeGuard/releases/download/v1.3.3/BungeeGuard.jar";
|
||||
sha256 = "0cackavwk7kl71hn1i78hcvkdp7q81srq35nranpvysbmm8v34vk";
|
||||
};
|
||||
"plugins/EssentialsX.jar" = builtins.fetchurl {
|
||||
url = "https://github.com/EssentialsX/Essentials/releases/download/2.20.1/EssentialsX-2.20.1.jar";
|
||||
sha256 = "0hpm3fk073f2z8aah9l1inq27h9kd60jb2c1grcs8326v85s6bl0";
|
||||
};
|
||||
"plugins/EssentialsXChat.jar" = builtins.fetchurl {
|
||||
url = "https://github.com/EssentialsX/Essentials/releases/download/2.20.1/EssentialsXChat-2.20.1.jar";
|
||||
sha256 = "19jwfymqgvjk0vkm1blhq2q6gi7jkgqznp6bxc3k1sqw4hh5raj0";
|
||||
};
|
||||
"plugins/LuckPerms.jar" = builtins.fetchurl {
|
||||
url = "https://download.luckperms.net/1571/bukkit/loader/LuckPerms-Bukkit-5.4.154.jar";
|
||||
sha256 = "0ls539d99h4bc3mh0h84gdmgh8lxjakr9rp0il81m695j4j2l5mz";
|
||||
};
|
||||
"plugins/ProtocolLib.jar" = builtins.fetchurl {
|
||||
url = "https://ci.dmulloy2.net/job/ProtocolLib/733/artifact/build/libs/ProtocolLib.jar";
|
||||
sha256 = "1gslh24kk7dcqiqxphzy8x2nrqa58f8gl5ah0iyg1ndx3pvr4z9m";
|
||||
};
|
||||
"plugins/Vault.jar" = builtins.fetchurl {
|
||||
url = "https://github.com/MilkBowl/Vault/releases/download/1.7.3/Vault.jar";
|
||||
sha256 = "07fhfz7ycdlbmxsri11z02ywkby54g6wi9q0myxzap1syjbyvdd6";
|
||||
};
|
||||
"plugins/VoiceChat.jar" = builtins.fetchurl {
|
||||
url = "https://cdn.modrinth.com/data/9eGKb6K1/versions/Il6UOBoH/voicechat-bukkit-2.5.27.jar";
|
||||
sha256 = "1k95sy0hf74y80fzk7960ww8wk210phyaiqkn4q7wlagdq48mxqm";
|
||||
};
|
||||
};
|
||||
|
||||
# Config files
|
||||
configFiles = {
|
||||
"plugins/Essentials/config.yml" = ./essentialsconfig.yml;
|
||||
"plugins/voicechat/voicechat-server.properties" = ./vcserver.properties;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue