This commit is contained in:
Leon Vita 2022-09-26 00:30:44 +01:00
commit 7113edface
2 changed files with 4 additions and 4 deletions

View File

@ -388,9 +388,9 @@
echo '${selfRef}' > flake
[ -e old ] && nix store diff-closures ./old ./current
ln -sfT `pwd`/current /nix/var/nix/gcroots/microvm/${name}
ln -sfT `pwd`/booted /nix/var/nix/gcroots/microvm/booted-${name}
ln -sfT `pwd`/old /nix/var/nix/gcroots/microvm/old-${name}
ln -sfT \$PWD/current /nix/var/nix/gcroots/microvm/${name}
ln -sfT \$PWD/booted /nix/var/nix/gcroots/microvm/booted-${name}
ln -sfT \$PWD/old /nix/var/nix/gcroots/microvm/old-${name}
systemctl restart microvm@${name}.service
END

View File

@ -66,7 +66,7 @@ in
copyToServer = writeScript "copy-to-${server}" ''
#! ${runtimeShell} -e
nix copy --to ssh://root@${serverFQDN} $@
nix copy --to ssh-ng://root@${serverFQDN} $@
'';
runOnServer = writeScript "run-on-${server}" ''