NxWSL -> NxDCS

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2025-10-07 16:35:06 +00:00
parent 812555c467
commit 685a34fcbb
7 changed files with 58 additions and 59 deletions

View File

@@ -112,7 +112,7 @@
'';
nx_backup = let
destination = if hyper.host == "NxNORTH" then "${hyper.home}/shared/" else "${hyper.home}/backups/";
in pkgs.lib.mkIf (hyper.host != "NxACE" && hyper.host != "NxWSL") ''
in pkgs.lib.mkIf (hyper.host != "NxACE" && hyper.host != "NxDCS") ''
set RPATH (curl -s https://${hyper.domain}/latest-backup)
rsync -avz --info=progress2 -e "ssh -p ${builtins.toString secrets.ssh.port}" ${hyper.user}@ssh.${hyper.domain}:"$RPATH" ${destination}
'';