feat: no exted mod for wow mine

This commit is contained in:
2026-11-12 13:30:28 +00:00
parent 84dd1616e7
commit 72727c96c5
10 changed files with 170 additions and 16 deletions
+21 -1
View File
@@ -13,7 +13,7 @@
serverName = "wowMineMap";
remoteHost = "u664722.your-storagebox.de";
remoteUser = "u664722";
remotePath = "minecraft/map/wow mine map.rar";
remotePath = "minecraft/map/versions/world-of-sosal-original-bc80084d.rar";
archiveName = "wow mine map.rar";
cacheDir = "/var/lib/minecraft-maps";
archiveSha256 = "bc80084de10a06b0fc2cb1651c61936b9e2fd2288f3f0fe44c964d83a393aa30";
@@ -22,6 +22,26 @@
hostPublicKey = "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5EB5p/5Hp3hGW1oHok+PIOH9Pbn7cnUiGmUEBrCVjnAw+HrKyN8bYVV0dIGllswYXwkG/+bgiBlE6IVIBAq+JwVWu1Sss3KarHY3OvFJUXZoZyRRg/Gc/+LRCE7lyKpwWQ70dbelGRyyJFH36eNv6ySXoUYtGkwlU5IVaHPApOxe4LHPZa/qhSRbPo2hwoh0orCtgejRebNtW5nlx00DNFgsvn8Svz2cIYLxsPVzKgUxs8Zxsxgn+Q/UvR7uq4AbAhyBMLxv7DjJ1pc7PJocuTno2Rw9uMZi1gkjbnmiOh6TTXIEWbnroyIhwc8555uto9melEUmWNQ+C+PwAK+MPw==";
};
systemd.services.minecraft-world-reset-wowMineMap = {
description = "Reset WorldOfSosal to the pinned source map";
path = [ pkgs.coreutils pkgs.systemd ];
serviceConfig = {
Type = "oneshot";
TimeoutStartSec = "45min";
};
script = let
source = config.services.minecraft-world-imports.wowMineMap;
in ''
set -eu
printf '%s %s\n' \
'${source.archiveSha256}' \
'${source.cacheDir}/${source.archiveName}' | sha256sum -c -
systemctl stop minecraft-server-wowMineMap.service minecraft-world-import-wowMineMap.service
rm -rf -- '${config.services.minecraft-servers.dataDir}/wowMineMap/${source.worldName}'
systemctl start minecraft-server-wowMineMap.service
'';
};
sops.secrets."minecraft/rcon-password" = {
sopsFile = ../../../../sus/neuro-minecraft.yaml;
owner = "minecraft";