1
0
forked from c3d2/nix-config

flake.nix: let microvm-update-${name} create gcroots symlinks

This commit is contained in:
Astro 2022-09-08 20:40:47 +02:00
parent 749a1ad2be
commit 74ce1f51d9

View File

@ -316,6 +316,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}
systemctl restart microvm@${name}.service
END