From b27859c0fa7208cce1003b5af8c2ff091fe5dcb5 Mon Sep 17 00:00:00 2001 From: Vegard Bieker Matthey Date: Sat, 23 May 2026 22:50:44 +0200 Subject: [PATCH] gluttony: export rendered bluemap to bekkalokk --- hosts/gluttony/services/bluemap.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hosts/gluttony/services/bluemap.nix b/hosts/gluttony/services/bluemap.nix index c503e44..35b78c3 100644 --- a/hosts/gluttony/services/bluemap.nix +++ b/hosts/gluttony/services/bluemap.nix @@ -94,6 +94,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} --groupmap=root:nginx ${config.services.bluemap.webRoot}/ root@bekkalokk.pvv.ntnu.no:/"; LoadCredential = [ "sshkey:${config.sops.secrets."bluemap/ssh-key".path}" "ssh-known-hosts:${config.sops.secrets."bluemap/ssh-known-hosts".path}"