From cbb587f79c050cce285e4f6cb14469a82f3dd942 Mon Sep 17 00:00:00 2001 From: Vegard Bieker Matthey Date: Sat, 23 May 2026 22:50:44 +0200 Subject: [PATCH] gluttony: bluemap export to bekkern --- hosts/gluttony/services/bluemap.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/gluttony/services/bluemap.nix b/hosts/gluttony/services/bluemap.nix index 02132c0..b41add4 100644 --- a/hosts/gluttony/services/bluemap.nix +++ b/hosts/gluttony/services/bluemap.nix @@ -1,6 +1,7 @@ { config, lib, pkgs, inputs, ... }: let vanillaSurvival = "/var/lib/bluemap/vanilla_survival_world"; + webExport = "/var/lib/bluemap/web"; format = pkgs.formats.hocon { }; in { # NOTE: our version of the module gets added in flake.nix @@ -95,6 +96,16 @@ in { rsh = "${pkgs.openssh}/bin/ssh -o UserKnownHostsFile=%d/ssh-known-hosts -i %d/sshkey"; }; in "${lib.getExe pkgs.rsync} ${rsyncArgs} root@innovation.pvv.ntnu.no:/ ${vanillaSurvival}"; + ExecStartPost = let + rsyncArgs = lib.cli.toCommandLineShellGNU { } { + archive = true; + compress = true; + verbose = true; + no-owner = true; + no-group = true; + rsh = "${pkgs.openssh}/bin/ssh -o UserKnownHostsFile=%d/ssh-known-hosts -i %d/sshkey"; + }; + in "${lib.getExe pkgs.rsync} ${rsyncArgs} ${webExport} root@bekkalokk.pvv.ntnu.no:${webExport}"; LoadCredential = [ "sshkey:${config.sops.secrets."bluemap/ssh-key".path}" "ssh-known-hosts:${config.sops.secrets."bluemap/ssh-known-hosts".path}"