diff --git a/modules/server/game/minecraft/default.nix b/modules/server/game/minecraft/default.nix index e69de29b..d805f367 100644 --- a/modules/server/game/minecraft/default.nix +++ b/modules/server/game/minecraft/default.nix @@ -0,0 +1,31 @@ +{ config, lib, inputs, pkgs, ... }: +with lib; +let cfg = config.void.server.game.minecraft; +in { + options.void.server.game.minecraft = { enable = mkEnableOption false; }; + + config = mkIf cfg.enable { + imports = [ inputs.nix-minecraft.nixosModules.minecraft-server ]; + nixpkgs.overlays = [ inputs.nix-minecraft.overlay ]; + + services = { + minecraft-servers.servers.wires = + let modpack = pkgs.fetchPackwizModpack { url = ./sakopack; }; + in { + enable = true; + package = pkgs.fabrticServers.fabric-1_24_4.override { + loaderVersion = "0.16.9"; + }; + whielist = { Sakoooo = "6b05caca-3d78-4597-aba5-d0f816f94024"; }; + symlinks = { "mods" = "${modpack}/mods"; }; + # files = { + # "config" = "${modpack}/config"; + # "config/mod1.yml" = "${modpack}/config/mod1.yml"; + # "config/mod2.conf" = "${modpack}/config/mod2.conf"; + # # You can add files not on the modpack, of course + # "config/server-specific.conf".value = { example = "foo-bar"; }; + # }; + }; + }; + }; +} diff --git a/modules/server/game/minecraft/sakopack/index.toml b/modules/server/game/minecraft/sakopack/index.toml new file mode 100644 index 00000000..6e129ba2 --- /dev/null +++ b/modules/server/game/minecraft/sakopack/index.toml @@ -0,0 +1,56 @@ +hash-format = "sha256" + +[[files]] +file = "mods/c2me-fabric.pw.toml" +hash = "b9200ba3e3c64c6e88d54fddaf0a7abcee8d1b36d0d6d1e0b517a5c9fde738d8" +metafile = true + +[[files]] +file = "mods/chunky.pw.toml" +hash = "01735a9d638c8fb4896c1a700eff0954aff8b854b517036bd9688e1d1754a7af" +metafile = true + +[[files]] +file = "mods/debugify.pw.toml" +hash = "b29157b97ddc91b9e027ee116121b851b86161a1dc3f50e7466729e6dc5d1abd" +metafile = true + +[[files]] +file = "mods/fabric-api.pw.toml" +hash = "b9ec27ce57c7e756dfbfe52cc0cdf9e67259a0297b353e1b2466d4e620684889" +metafile = true + +[[files]] +file = "mods/ferrite-core.pw.toml" +hash = "ada74e6d4149631f2b442d2f0061b0179feef576bbf4b5cd28bbcc7de1380b7e" +metafile = true + +[[files]] +file = "mods/krypton.pw.toml" +hash = "4ee72fa3b6d91ccec6ec3420396db368dc5097350ee2bb909af3a65f0446c9d5" +metafile = true + +[[files]] +file = "mods/ksyxis.pw.toml" +hash = "cf4d50556f99d310bea0745680a9d8574791ad55880e5a8d85029e85711601ff" +metafile = true + +[[files]] +file = "mods/lithium.pw.toml" +hash = "52b25d589bdb56a6b73c086432543f35a8e004cfbefcfb775fb2fd9c74f37962" +metafile = true + +[[files]] +file = "mods/modernfix.pw.toml" +hash = "8d2c588848301dd572f4c36ae84e5985b76c395bf820fa331bfc74c7d41264a7" +metafile = true + +[[files]] +file = "mods/no-chat-reports.pw.toml" +hash = "6136fc60427d37f49b7b58a030d67bbd68fd60a0eaf459f4f9fe0058858f07d4" +metafile = true + +[[files]] +file = "mods/yacl.pw.toml" +hash = "7025706e3c3bb9191adac64a3eada81bc31711be08b4bdc4324fc05789a2076a" +metafile = true diff --git a/modules/server/game/minecraft/sakopack/mods/c2me-fabric.pw.toml b/modules/server/game/minecraft/sakopack/mods/c2me-fabric.pw.toml new file mode 100644 index 00000000..ac594bda --- /dev/null +++ b/modules/server/game/minecraft/sakopack/mods/c2me-fabric.pw.toml @@ -0,0 +1,13 @@ +name = "Concurrent Chunk Management Engine (Fabric)" +filename = "c2me-fabric-mc1.21.4-0.3.2+alpha.0.20.jar" +side = "both" + +[download] +url = "https://cdn.modrinth.com/data/VSNURh3q/versions/reHSALRh/c2me-fabric-mc1.21.4-0.3.2%2Balpha.0.20.jar" +hash-format = "sha1" +hash = "2685593062e25cb0203117c821f3f017ad789f03" + +[update] +[update.modrinth] +mod-id = "VSNURh3q" +version = "reHSALRh" diff --git a/modules/server/game/minecraft/sakopack/mods/chunky.pw.toml b/modules/server/game/minecraft/sakopack/mods/chunky.pw.toml new file mode 100644 index 00000000..0fb3f7ab --- /dev/null +++ b/modules/server/game/minecraft/sakopack/mods/chunky.pw.toml @@ -0,0 +1,13 @@ +name = "Chunky" +filename = "Chunky-Fabric-1.4.27.jar" +side = "both" + +[download] +url = "https://cdn.modrinth.com/data/fALzjamp/versions/VkAgASL1/Chunky-Fabric-1.4.27.jar" +hash-format = "sha1" +hash = "db518ceda4aa3068d32242285ac9c5816b9d694a" + +[update] +[update.modrinth] +mod-id = "fALzjamp" +version = "VkAgASL1" diff --git a/modules/server/game/minecraft/sakopack/mods/debugify.pw.toml b/modules/server/game/minecraft/sakopack/mods/debugify.pw.toml new file mode 100644 index 00000000..88fe4f17 --- /dev/null +++ b/modules/server/game/minecraft/sakopack/mods/debugify.pw.toml @@ -0,0 +1,13 @@ +name = "Debugify" +filename = "Debugify-1.21.4+1.0.jar" +side = "both" + +[download] +url = "https://cdn.modrinth.com/data/QwxR6Gcd/versions/TxwUizo2/Debugify-1.21.4%2B1.0.jar" +hash-format = "sha1" +hash = "292e5b33e3f8ecf9e26f74f1df04028a9292bcc2" + +[update] +[update.modrinth] +mod-id = "QwxR6Gcd" +version = "TxwUizo2" diff --git a/modules/server/game/minecraft/sakopack/mods/fabric-api.pw.toml b/modules/server/game/minecraft/sakopack/mods/fabric-api.pw.toml new file mode 100644 index 00000000..78535122 --- /dev/null +++ b/modules/server/game/minecraft/sakopack/mods/fabric-api.pw.toml @@ -0,0 +1,13 @@ +name = "Fabric API" +filename = "fabric-api-0.114.0+1.21.4.jar" +side = "both" + +[download] +url = "https://cdn.modrinth.com/data/P7dR8mSH/versions/5tj7y3PJ/fabric-api-0.114.0%2B1.21.4.jar" +hash-format = "sha1" +hash = "92a575c28beba884b856650408abd1000b662a3d" + +[update] +[update.modrinth] +mod-id = "P7dR8mSH" +version = "5tj7y3PJ" diff --git a/modules/server/game/minecraft/sakopack/mods/ferrite-core.pw.toml b/modules/server/game/minecraft/sakopack/mods/ferrite-core.pw.toml new file mode 100644 index 00000000..800a913c --- /dev/null +++ b/modules/server/game/minecraft/sakopack/mods/ferrite-core.pw.toml @@ -0,0 +1,13 @@ +name = "FerriteCore" +filename = "ferritecore-7.1.1-fabric.jar" +side = "both" + +[download] +url = "https://cdn.modrinth.com/data/uXXizFIs/versions/IPM0JlHd/ferritecore-7.1.1-fabric.jar" +hash-format = "sha1" +hash = "ee08ca5fd2a7a02dbade048745533b5570a826f0" + +[update] +[update.modrinth] +mod-id = "uXXizFIs" +version = "IPM0JlHd" diff --git a/modules/server/game/minecraft/sakopack/mods/krypton.pw.toml b/modules/server/game/minecraft/sakopack/mods/krypton.pw.toml new file mode 100644 index 00000000..d2fae304 --- /dev/null +++ b/modules/server/game/minecraft/sakopack/mods/krypton.pw.toml @@ -0,0 +1,13 @@ +name = "Krypton" +filename = "krypton-0.2.8.jar" +side = "both" + +[download] +url = "https://cdn.modrinth.com/data/fQEb0iXm/versions/Acz3ttTp/krypton-0.2.8.jar" +hash-format = "sha1" +hash = "73e792eb5f120787becda4b87b6ff18b26caea50" + +[update] +[update.modrinth] +mod-id = "fQEb0iXm" +version = "Acz3ttTp" diff --git a/modules/server/game/minecraft/sakopack/mods/ksyxis.pw.toml b/modules/server/game/minecraft/sakopack/mods/ksyxis.pw.toml new file mode 100644 index 00000000..354027ad --- /dev/null +++ b/modules/server/game/minecraft/sakopack/mods/ksyxis.pw.toml @@ -0,0 +1,13 @@ +name = "Ksyxis" +filename = "Ksyxis-1.3.2.jar" +side = "both" + +[download] +url = "https://cdn.modrinth.com/data/2ecVyZ49/versions/QFfBwOwT/Ksyxis-1.3.2.jar" +hash-format = "sha1" +hash = "21c82ab70e7b427e07cee07cec26ba603301d83e" + +[update] +[update.modrinth] +mod-id = "2ecVyZ49" +version = "QFfBwOwT" diff --git a/modules/server/game/minecraft/sakopack/mods/lithium.pw.toml b/modules/server/game/minecraft/sakopack/mods/lithium.pw.toml new file mode 100644 index 00000000..91d9ca7e --- /dev/null +++ b/modules/server/game/minecraft/sakopack/mods/lithium.pw.toml @@ -0,0 +1,13 @@ +name = "Lithium" +filename = "lithium-fabric-0.14.3+mc1.21.4.jar" +side = "both" + +[download] +url = "https://cdn.modrinth.com/data/gvQqBUqZ/versions/t1FlWYl9/lithium-fabric-0.14.3%2Bmc1.21.4.jar" +hash-format = "sha1" +hash = "054d976fc8bc6699980ad7e87a344cd356e2c0d5" + +[update] +[update.modrinth] +mod-id = "gvQqBUqZ" +version = "t1FlWYl9" diff --git a/modules/server/game/minecraft/sakopack/mods/modernfix.pw.toml b/modules/server/game/minecraft/sakopack/mods/modernfix.pw.toml new file mode 100644 index 00000000..d1ddd963 --- /dev/null +++ b/modules/server/game/minecraft/sakopack/mods/modernfix.pw.toml @@ -0,0 +1,13 @@ +name = "ModernFix" +filename = "modernfix-fabric-5.20.1+mc1.21.4.jar" +side = "both" + +[download] +url = "https://cdn.modrinth.com/data/nmDcB62a/versions/gx7PIV8n/modernfix-fabric-5.20.1%2Bmc1.21.4.jar" +hash-format = "sha1" +hash = "712e07e2b4a26dfa6ae1357900fecef75558452f" + +[update] +[update.modrinth] +mod-id = "nmDcB62a" +version = "gx7PIV8n" diff --git a/modules/server/game/minecraft/sakopack/mods/no-chat-reports.pw.toml b/modules/server/game/minecraft/sakopack/mods/no-chat-reports.pw.toml new file mode 100644 index 00000000..2e19e296 --- /dev/null +++ b/modules/server/game/minecraft/sakopack/mods/no-chat-reports.pw.toml @@ -0,0 +1,13 @@ +name = "No Chat Reports" +filename = "NoChatReports-FABRIC-1.21.4-v2.11.0.jar" +side = "both" + +[download] +url = "https://cdn.modrinth.com/data/qQyHxfxd/versions/9xt05630/NoChatReports-FABRIC-1.21.4-v2.11.0.jar" +hash-format = "sha1" +hash = "9fc63f45ee0f157fd161f57f2af1db20ae603918" + +[update] +[update.modrinth] +mod-id = "qQyHxfxd" +version = "9xt05630" diff --git a/modules/server/game/minecraft/sakopack/mods/yacl.pw.toml b/modules/server/game/minecraft/sakopack/mods/yacl.pw.toml new file mode 100644 index 00000000..9e2e74de --- /dev/null +++ b/modules/server/game/minecraft/sakopack/mods/yacl.pw.toml @@ -0,0 +1,13 @@ +name = "YetAnotherConfigLib (YACL)" +filename = "YetAnotherConfigLib-3.6.2+1.21.4-fabric.jar" +side = "both" + +[download] +url = "https://cdn.modrinth.com/data/1eAoo2KR/versions/VtWuZoXP/YetAnotherConfigLib-3.6.2%2B1.21.4-fabric.jar" +hash-format = "sha1" +hash = "1394c363dee8a2ba53981a7b1135c1e882fa15f1" + +[update] +[update.modrinth] +mod-id = "1eAoo2KR" +version = "VtWuZoXP" diff --git a/modules/server/game/minecraft/sakopack/pack.toml b/modules/server/game/minecraft/sakopack/pack.toml new file mode 100644 index 00000000..27106398 --- /dev/null +++ b/modules/server/game/minecraft/sakopack/pack.toml @@ -0,0 +1,13 @@ +name = "Sakopack" +author = "sako" +version = "0.0.1" +pack-format = "packwiz:1.1.0" + +[index] +file = "index.toml" +hash-format = "sha256" +hash = "395e21be2ce691f0359d64f4c6baa492b03c9cf940b65992c53ea387e4b3f270" + +[versions] +fabric = "0.16.9" +minecraft = "1.21.4"