flake.nix: fix microvm-update-*-local

This commit is contained in:
Astro 2022-09-12 18:49:58 +02:00
parent 49c5fa0996
commit e4060f1ac8
1 changed files with 2 additions and 1 deletions

View File

@ -323,7 +323,7 @@
systemctl restart microvm@${name}.service
END
'';
} // lib.optionalAttrs (hostConfig.c3d2.deployment.server or null == "nomad") {
"microvm-update-${name}-local" = pkgs.writeScriptBin "microvm-update-${name}" ''
#!${pkgs.runtimeShell} -e
${hostConfig.system.build.copyToServer} ${hostConfig.microvm.declaredRunner}
@ -346,6 +346,7 @@
END
'';
} // lib.optionalAttrs (hostConfig.c3d2.deployment.server or null == "nomad") {
"nomad-${name}" = pkgs.writeScriptBin "nomad-${name}" ''
#!${pkgs.runtimeShell} -e