225 lines
12 KiB
Nix
225 lines
12 KiB
Nix
|
{ pkgs, inputs, ... }:
|
||
|
|
||
|
{
|
||
|
imports = [ inputs.nix-minecraft.nixosModules.minecraft-servers ];
|
||
|
|
||
|
nixpkgs.overlays = [ inputs.nix-minecraft.overlay ];
|
||
|
|
||
|
services.minecraft-servers = {
|
||
|
enable = true;
|
||
|
eula = true;
|
||
|
dataDir = "/var/lib/minecraft-servers";
|
||
|
servers = {
|
||
|
mmh = {
|
||
|
enable = true;
|
||
|
package = pkgs.fabric-server;
|
||
|
autoStart = true;
|
||
|
openFirewall = true;
|
||
|
restart = "always";
|
||
|
serverProperties = {
|
||
|
server-port = 11984;
|
||
|
gamemode = "survival";
|
||
|
difficulty = "hard";
|
||
|
force-gamemode = true;
|
||
|
allow-cheats = true;
|
||
|
white-list = true;
|
||
|
snooper-enabled = false;
|
||
|
enforce-secure-profile = false;
|
||
|
level-type = "bclib:normal";
|
||
|
motd = "mine craft srever";
|
||
|
};
|
||
|
symlinks = {
|
||
|
"mods/FabricAPI.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/P7dR8mSH/versions/qKPgBeHl/fabric-api-0.104.0%2B1.21.1.jar";
|
||
|
hash = "sha256-sa6vkKmve1/UBpFHv7i1vUxm5HViSK4S/td24tppSho=";
|
||
|
};
|
||
|
"mods/Lithium.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/gvQqBUqZ/versions/9x0igjLz/lithium-fabric-mc1.21.1-0.13.1.jar";
|
||
|
hash = "sha256-H0OFqO4sBORv2s36P3UdF/U9H0wjMviJQjCObcK2lPY=";
|
||
|
};
|
||
|
"mods/FerriteCore.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/uXXizFIs/versions/wmIZ4wP4/ferritecore-7.0.0-fabric.jar";
|
||
|
hash = "sha256-LDEgDR9d5qPPXtxMPTkgBjbh4GDEtUjc+CSe9IdmAyM=";
|
||
|
};
|
||
|
"mods/Carpet.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/TQTTVgYE/versions/f2mvlGrg/fabric-carpet-1.21-1.4.147%2Bv240613.jar";
|
||
|
hash = "sha256-B5/IpOBz6ySwEP/MWI5Z+TuYQUPhfY7xn7sLav8PGdk=";
|
||
|
};
|
||
|
# "mods/Moonrise.jar" = pkgs.fetchurl {
|
||
|
# url = "https://cdn.modrinth.com/data/KOHu7RCS/versions/mScVrtF3/Moonrise-Fabric-0.1.0-beta.3%2B23eddfe.jar";
|
||
|
# hash = "sha256-WtIM3cITtyEVabeJC2lAn2H3J9J8QaRGI4l82CxXhN0=";
|
||
|
# };
|
||
|
"mods/EasyAuth.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/aZj58GfX/versions/8ZQEgc1i/easyauth-mc1.21-3.0.25.jar";
|
||
|
hash = "sha256-vdZ9ZD8N2I+Dckg6XIcQ6/O0dVyRi3ZF6RzIPBZPurM=";
|
||
|
};
|
||
|
"mods/EasyWhitelist.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/LODybUe5/versions/4ndHE533/easywhitelist-mc1.20-rc1-1.0.1.jar";
|
||
|
hash = "sha256-frtzUbOO50Askwjyz+kGqZeBWB0K/xbu2Y/XTHU+7c0=";
|
||
|
};
|
||
|
"mods/FabricTailor.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/g8w1NapE/versions/UDZdkBPN/fabrictailor-2.5.0.jar";
|
||
|
hash = "sha256-4o487RRSJAeMIjN4KL1ivru4Z3WCMrXmu5Ih2QqXHW8=";
|
||
|
};
|
||
|
"mods/AppleSkin.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/EsAfCjCV/versions/fG1xJao0/appleskin-fabric-mc1.21-3.0.5.jar";
|
||
|
hash = "sha256-8086Mfqzc86hQFagKItgCpoZ/ylxRKy0YxV6iBPb/sw=";
|
||
|
};
|
||
|
"mods/CreeperOverhaul.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/MI1LWe93/versions/LvGcZBEq/Creeperoverhaul-fabric-1.21-4.0.5.jar";
|
||
|
hash = "sha256-Pio2FnOArXMkDkhx+0BUuh+hTF6DKI24tCYOaL1zV5M=";
|
||
|
};
|
||
|
"mods/GeckoLib.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/8BmcQJ2H/versions/5jcq814u/geckolib-fabric-1.21.1-4.6.5.jar";
|
||
|
hash = "sha256-DmnvcuQTiRJho54h40DgWQ65tjGdBOHOR3/fkBkMi+g=";
|
||
|
};
|
||
|
"mods/ResourcefulLib.jar"= pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/G1hIVOrD/versions/Qq8o6KAr/resourcefullib-fabric-1.21-3.0.10.jar";
|
||
|
hash = "sha256-pGYbDpKVZ+n3Em0QrOR13i4wwh6YloOO96PqBJLJ5nI=";
|
||
|
};
|
||
|
"mods/ResourcefulConfig.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/M1953qlQ/versions/PfDhIaBR/resourcefulconfig-fabric-1.21-3.0.3.jar";
|
||
|
hash = "sha256-Gn3AEjzW8KWGIwXpqv3DL9qrPkpJGN5rQW5FllvTonk=";
|
||
|
};
|
||
|
"mods/BetterNether.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/MpzVLzy5/versions/M1o6hR2m/better-nether-21.0.11.jar";
|
||
|
hash = "sha256-tGCAcf9Z1Z+5NS8Td0xUI7Di6wDfIc6JhkNEBOb2dDM=";
|
||
|
};
|
||
|
"mods/BetterEnd.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/gc8OEnCC/versions/4qhBEg6J/better-end-21.0.11.jar";
|
||
|
hash = "sha256-tjANrWuS61gQAIaV5VthX3JLTQgqcRyU8NmUGheEz9Y=";
|
||
|
};
|
||
|
"mods/BCLib.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/BgNRHReB/versions/TxWM7AW8/bclib-21.0.13.jar";
|
||
|
hash = "sha256-wVB3meMbVSZBl0MfG2E5ZQMDtDAJPIm7Ci2ZAXQLWnw=";
|
||
|
};
|
||
|
"mods/WorldWeaver.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/RiN8rDVs/versions/mPmeykPR/worldweaver-21.0.13.jar";
|
||
|
hash = "sha256-LECNNucCkLhA+uwSqWPEs++zg5HePIfXMijTzna/Ey0=";
|
||
|
};
|
||
|
"mods/DeeperAndDarker.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/fnAffV0n/versions/RXdwJw5B/deeperdarker-fabric-1.21-1.3.2.1.jar";
|
||
|
hash = "sha256-SWJkKVlGTnKE6OOcK0ckyktsyw3D/T1Jj5NayTUshUs=";
|
||
|
};
|
||
|
"mods/OwoLib.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/ccKDOlHs/versions/HegQGu0K/owo-lib-0.12.14%2B1.21.jar";
|
||
|
hash = "sha256-gUbxWuSkMUmWlq97dpzcc5LoOGj8EkaQ+ZTf8l17utg=";
|
||
|
};
|
||
|
"mods/TreeHarvester.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/abooMhox/versions/mmgoH9qo/treeharvester-1.21.1-9.1.jar";
|
||
|
hash = "sha256-PtSRYASB1qp5366wSk1zWeIGMaTkrZtRP76x6RVORnU=";
|
||
|
};
|
||
|
"mods/ZombieHorseSpawn.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/owDBGfRd/versions/FDcuqV5F/zombiehorsespawn-1.21.1-5.1.jar";
|
||
|
hash = "sha256-71zFcv9Sju2k8T5OZuACjsCMSxK4L0ZiUxGuU8daZsY=";
|
||
|
};
|
||
|
"mods/SkeletonHorseSpawn.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/ZcqNoW8j/versions/dMlPqfgY/skeletonhorsespawn-1.21.1-4.0.jar";
|
||
|
hash = "sha256-ovn+7K8yq7QsreFb05Pzp5ZZDRCn82imL2JAeNTe5kU=";
|
||
|
};
|
||
|
"mods/GiantSpawn.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/iWwn7s9U/versions/WcCfUo0W/giantspawn-1.21.1-5.2.jar";
|
||
|
hash = "sha256-+YipDEy7JNhzXMaByLJ0uRaUpXHvteVrup5q+TPJCl8=";
|
||
|
};
|
||
|
"mods/ReplantingCrops.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/EXzIPtJo/versions/ch137OCG/replantingcrops-1.21.1-5.4.jar";
|
||
|
hash = "sha256-ZsU0Wj3sadd9qBJrJBgR2KoQhzkm2XDFCuf3019KAAQ=";
|
||
|
};
|
||
|
"mods/NaturallyChargedCreepers.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/j5LquiGA/versions/r21mARlJ/naturallychargedcreepers-1.21.1-3.5.jar";
|
||
|
hash = "sha256-qTf1WiuVKJEHkDsSwxEBT4ydgCGm51yrQ3ZxetXzn/g=";
|
||
|
};
|
||
|
"mods/JustMobHeads.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/jzTUm9hE/versions/4A7YxYSz/justmobheads-1.21.1-8.3.jar";
|
||
|
hash = "sha256-2aQBtSO00No0WjTIXcXHSpsNWxPt6BOG+cJiBc8DRds=";
|
||
|
};
|
||
|
"mods/InfiniteTrading.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/U3eoZT3o/versions/AqPTywmR/infinitetrading-1.21.1-4.5.jar";
|
||
|
hash = "sha256-rN07ETLeltWjZ2VSwcyLIg3mDLmoyA8l7m1F1i3IfwA=";
|
||
|
};
|
||
|
"mods/HealingCampfire.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/kOuPUitF/versions/6YjKZX63/healingcampfire-1.21.1-6.1.jar";
|
||
|
hash = "sha256-bWSoOzs0lRSM/GVqN2lsm0B18GkZwS8YAwYSfz8fVb4=";
|
||
|
};
|
||
|
"mods/Collective.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/e0M1UDsY/versions/13do3Fe4/collective-1.21.1-7.84.jar";
|
||
|
hash = "sha256-Em1QJRmSNIBaR0f/j9MkALfYuXgtoBsA8SToasA3NXs=";
|
||
|
};
|
||
|
"mods/DungeonsAndTaverns.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/tpehi7ww/versions/EUlNXs9V/dungeons-and-taverns-v4.4.4.jar";
|
||
|
hash = "sha256-a6QeSPa/7IFWfhgFtDxKj1G0q182CjwhGAXr+wcGQto=";
|
||
|
};
|
||
|
"mods/IllagerInvasion.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/jSV9w0J5/versions/U4vRnaGx/IllagerInvasion-v21.1.2-1.21.1-Fabric.jar";
|
||
|
hash = "sha256-mtFiMzTCcF8XOpGcO/kfDVrBwW3fOyKS7LMQqYUG83s=";
|
||
|
};
|
||
|
"mods/MutantMonsters.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/derP0ten/versions/MpLmiqo6/MutantMonsters-v21.1.0-1.21.1-Fabric.jar";
|
||
|
hash = "sha256-HHcEd+4K/81fMNzqj8BBoWZOyYJil3jkcmEIOb95e1s=";
|
||
|
};
|
||
|
"mods/PuzzlesLib.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/QAGBst4M/versions/4OiP6mQJ/PuzzlesLib-v21.1.17-1.21.1-Fabric.jar";
|
||
|
hash = "sha256-kJIAHVKfqhLPDVfyr9gHcYdMGLZsXOZBAMSK335y1JM=";
|
||
|
};
|
||
|
"mods/ForgeConfigAPIPort.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/ohNO6lps/versions/ZlbHFjxE/ForgeConfigAPIPort-v21.1.1-1.21.1-Fabric.jar";
|
||
|
hash = "sha256-ba9tEX5KaJPEgeNg5QhtSbCCNomkTRUksCKrrNam0lU=";
|
||
|
};
|
||
|
"mods/FriendsAndFoes.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/POQ2i9zu/versions/Le3XofBl/friendsandfoes-fabric-mc1.21.1-3.0.3.jar";
|
||
|
hash = "sha256-bBoX5GdYrvUJXP1x4igrP9l2M52zpbwNIgd5bnNntZI=";
|
||
|
};
|
||
|
"mods/WhenDungeonsArise.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/8DfbfASn/versions/4eH50FuY/DungeonsArise-1.21.x-2.1.60-fabric-release.jar";
|
||
|
hash = "sha256-UPQYpuVk/aTJpSRBkXL0qv3sgY1/V0Qwa0aIAXJ9OI4=";
|
||
|
};
|
||
|
"mods/SevenSeas.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/ZsrrjDbP/versions/qY6mQXNz/DungeonsAriseSevenSeas-1.21.x-1.0.3-fabric.jar";
|
||
|
hash = "sha256-OPK9hK2ZukUGN33klGurpG8tSUbdUWTxMX+w1V0q5b4=";
|
||
|
};
|
||
|
"mods/ElytraSlot.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/mSQF1NpT/versions/jxx2pc4h/elytraslot-fabric-9.0.1%2B1.21.1.jar";
|
||
|
hash = "sha256-SXcobMo+/7EDCaoD8kb9ttvBWgUzPvOkhWyNJlhQIKQ=";
|
||
|
};
|
||
|
"mods/Trinkets.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/5aaWibi9/versions/JagCscwi/trinkets-3.10.0.jar";
|
||
|
hash = "sha256-NJ/SqokwsjIFDuUwTbVeTvc4sBeXGv58hKzVialf2i8=";
|
||
|
};
|
||
|
"mods/ElytraTrims.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/XpzGz7KD/versions/DfoGIeFt/elytratrims-fabric-3.5.3%2B1.21.jar";
|
||
|
hash = "sha256-J5y9hNZabZm6Hw6oB69Gb7VyCM327N6ChUZlkQSs8SE=";
|
||
|
};
|
||
|
"mods/FabricLanguageKotlin.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/Ha28R6CL/versions/o0V8mlNz/fabric-language-kotlin-1.12.2%2Bkotlin.2.0.20.jar";
|
||
|
hash = "sha256-AZOgIb2JFY2KUiDUzV5zZCIQgdJ1qUkkWz1NWFoqAws=";
|
||
|
};
|
||
|
"mods/TownsAndTowers.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/DjLobEOy/versions/MntMLupc/t_and_t-neoforge-fabric-1.13.2.jar";
|
||
|
hash = "sha256-Ej9ukuv2MgeWV6xQJKzx6PNfqHY4+uRUfE5K6WmelUI=";
|
||
|
};
|
||
|
"mods/CristelLib.jar" = pkgs.fetchurl {
|
||
|
url = "https://cdn.modrinth.com/data/cl223EMc/versions/8iGbvXwk/cristellib-fabric-1.2.8.jar";
|
||
|
hash = "sha256-DIBdVE120MSDi0SUAnZsD9Tpb0SKMDCRL+old86QGwc=";
|
||
|
};
|
||
|
};
|
||
|
files = {
|
||
|
"config/ferritecore.mixin.properties" =
|
||
|
pkgs.writeText "ferritecore.mixin.properties " ''
|
||
|
replaceNeighborLookup = false
|
||
|
replacePropertyMap = false
|
||
|
'';
|
||
|
"config/EasyAuth/config.json" =
|
||
|
pkgs.writeText "EasyAuth.config.json" ''
|
||
|
{
|
||
|
"maxLoginTries": 3,
|
||
|
"kickTime": 30,
|
||
|
"maxPasswordChars": 48,
|
||
|
"premiumAutologin": true,
|
||
|
}
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|