mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2025-12-13 05:37:14 +01:00
WIP: Add bluemap
Co-authored-by: Daniel Olsen <daniel.olsen99@gmail.com>
This commit is contained in:
committed by
Daniel Olsen
parent
ceaa67fc19
commit
60e1bbfd08
21
hosts/buskerud/services/bluemap.nix
Normal file
21
hosts/buskerud/services/bluemap.nix
Normal 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"
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user