update modpack

This commit is contained in:
♥ Minnie ♥ 2025-06-14 21:32:36 +08:00
parent f4ac9c1753
commit 2e635ce32f
Signed by: jasmine
GPG key ID: 8563E358D4E8040E

View file

@ -6,9 +6,9 @@
...
}: let
modpack = pkgs.fetchPackwizModpack rec {
version = "4d507be";
version = "9083262";
url = "https://raw.githubusercontent.com/sajenim/minecraft-modpack/${version}/pack.toml";
packHash = "sha256-1Za6ZSLVE6jbwlqkJriQNvuoFAnOVz76t8BWtR6al7o=";
packHash = "sha256-JQTU2qQfiqrAnvp2D0bNwfqYkGyH7yy0cMrNgoCTJ2I=";
};
mcVersion = modpack.manifest.versions.minecraft;
fabricVersion = modpack.manifest.versions.fabric;
@ -61,6 +61,9 @@ in {
# Things to copy into this server's data directory.
files = {
"ops.json" = ./ops.json;
# Your'r in grave danger!
"config/yigd.json" = "${modpack}/config/yigd.json";
};
# Value of systemd's `Restart=` service configuration option.
@ -94,12 +97,14 @@ in {
service = "minecraft";
};
};
# Define the service for the minecraft server.
services = {
minecraft.loadBalancer.servers = [
{url = "http://127.0.0.1:${toString config.services.minecraft-servers.servers.kanto.serverProperties.server-port}";}
];
};
};
# Enable persistence for the data directory.
environment.persistence."/persist" = {