chore(minecraft): update pack url

This commit is contained in:
arcnmx 2024-10-18 13:36:24 -07:00
parent ee5dc7aef2
commit ca74c78f6b

View file

@ -6,7 +6,7 @@
lib,
...
}: let
inherit (gensokyo-zone.lib) mapDefaults;
inherit (gensokyo-zone.lib) mapDefaults domain;
inherit (lib.modules) mkIf mkMerge mkDefault;
inherit (lib) versions;
inherit (systemConfig.exports.services) minecraft;
@ -19,13 +19,16 @@
enableBluemap = minecraft.ports.bluemap.enable;
packwizUpdate = true;
modpack = rec {
owner = "kittywitch";
owner = "gensokyo-zone";
repo = "minecraft-modpack";
branch = "marka-${versions.majorMinor mcVersion}";
permalink = true;
pages = true;
packUrl =
if pages
then "https://${owner}.github.io/${repo}/pack.toml"
if permalink
then "https://${domain}/minecraft/modpack/${branch}/pack.toml"
else if pages
then "https://${owner}.github.io/${repo}/${branch}/pack.toml"
else "https://raw.githubusercontent.com/${owner}/${repo}/refs/heads/${branch}/pack.toml";
};
in {