flake.nix: create gcroots when running under nomad

This commit is contained in:
Astro 2022-07-07 03:25:06 +02:00
parent e66181c341
commit cde083b255
1 changed files with 3 additions and 0 deletions

View File

@ -343,6 +343,9 @@
mkdir -p /glusterfs/fast/microvms/${name}
chown microvm:kvm /glusterfs/fast/microvms/${name}
chmod 0775 /glusterfs/fast/microvms/${name}
mkdir -p /nix/var/nix/gcroots/microvm
rm -f /nix/var/nix/gcroots/microvm/${name}
ln -s $JOB /nix/var/nix/gcroots/microvm/${name}
EOF
done