update and run mc modpack on server :>

This commit is contained in:
xunuwu 2026-02-19 20:08:52 +01:00
parent ad6cc085f4
commit f3afcb060b
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
10 changed files with 133 additions and 88 deletions

View file

@ -0,0 +1,13 @@
name = "Create Ultimate Selection 2 Create Quests | Create Addons [1.21.1]"
filename = "Create Ultimate Selection 2 MC 1.21.1-5.2.0.zip"
side = "both"
[download]
hash-format = "sha1"
hash = "f1bb7067d9a58492d1634d0ff5f15bee68ed1f7b"
mode = "metadata:curseforge"
[update]
[update.curseforge]
file-id = 7634594
project-id = 1324409

View file

@ -0,0 +1,6 @@
hash-format = "sha256"
[[files]]
file = "create-ultimate-selection-2.pw.toml"
hash = "9ab2c65f33afcf236a0f406422cc1a6b7c6989f7da57a49f967699259d6e4e3e"
metafile = true

View file

@ -0,0 +1,12 @@
name = "Packwiz Create Ultimate Selection"
version = "1.0.0"
pack-format = "packwiz:1.1.0"
[index]
file = "index.toml"
hash-format = "sha256"
hash = "c1e5db361e3f6a0150a60e69742ea490985603d455146b1498075cfb2f718a55"
[versions]
minecraft = "1.21.1"
neoforge = "21.1.219"

View file

@ -7,8 +7,38 @@
enable = true;
eula = true;
openFirewall = true;
servers.owo = {
servers.createpack = let
modpackZip = pkgs.fetchurl {
url = "https://git.xunuwu.xyz/xun/nixos-config/releases/download/create-ultimate-bundle-thing/Create%20Ultimate%20Selection%202%20MC%201.21.1-5.2.0.zip";
name = "Create Ultimate Selection 2 MC 1.21.1-5.2.0.zip";
hash = "sha256-+ykE2GE5lWQVLfcKyleKmQ+GXC+yN54yIgh7mPxxj4g="; # Replace with actual hash: run `nix-prefetch-url --name 'Create Ultimate Selection 2 MC 1.21.1-5.2.0.zip' 'https://www.curseforge.com/minecraft/modpacks/create-ultimate-selection-2/download/7634594/file'` and paste the output here
};
baseModpack = inputs.nix-minecraft.legacyPackages.${pkgs.stdenv.hostPlatform.system}.fetchPackwizModpack {
src = ./create-ultimate-selection-2;
packHash = "sha256-0i4RWfJLWayYkefzeePbQY48nr/TdbX/sUVFfppkKvM="; # Leave empty initially; update with the correct value after the first failed build (see instructions below)
};
modpack = baseModpack.overrideAttrs (old: {
buildPhase =
''
cp ${modpackZip} "Create Ultimate Selection 2 MC 1.21.1-5.2.0.zip"
''
+ old.buildPhase;
});
in {
enable = true;
package = inputs.nix-minecraft.legacyPackages.${pkgs.stdenv.hostPlatform.system}.neoforgeServers.neoforge-1_21_1;
serverProperties = {
motd = "createpack!!";
max-players = 5;
difficulty = "normal";
allow-flight = true;
view-distance = 16;
};
jvmOpts = "-Xms1024M -Xmx6144M";
symlinks.mods = "${modpack}/mods";
};
servers.owo = {
enable = false;
package = inputs.nix-minecraft.legacyPackages.${pkgs.stdenv.hostPlatform.system}.fabricServers.fabric-1_21_5;
serverProperties = {
max-players = 5;

View file

@ -7,10 +7,10 @@
services.navidrome = {
enable = true;
package = pkgs.navidrome.overrideAttrs {
patches = [./scrobbleAlbumArtist.patch];
doCheck = false;
};
# package = pkgs.navidrome.overrideAttrs {
# patches = [./scrobbleAlbumArtist.patch];
# doCheck = false;
# };
settings = {
MusicFolder = "/media/library/music";
Address = config.vpnNamespaces."wg".bridgeAddress;