WIP: Add bluemap

Co-authored-by: Daniel Olsen <daniel.olsen99@gmail.com>
This commit is contained in:
Eirik Wittersø
2024-06-08 23:36:18 +02:00
committed by Daniel Olsen
parent ceaa67fc19
commit 60e1bbfd08
4 changed files with 74 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
{config, ...}:
{
sops.secrets."bluemap_ssh_key" = {
owner = "root";
mode = "0400";
};
services.bluemap = {
enable = true;
eula = true;
defaultWorld = "/var/lib/bluemap/vanilla";
host = "minecraft.pvv.ntnu.no";
};
systemd.services."render-bluemap-maps".preStart = ''
rsync -e 'ssh -i ${config.sops.secrets."bluemap_ssh_key".path} -o "StrictHostKeyChecking accept-new"' \
root@innovation.pvv.ntnu.no:/var/backups/minecraft/current/ \
/var/lib/bluemap/vanilla"
'';
}