nixos-config/apps/run-workflow-with-vm/app.sh

14 lines
294 B
Bash
Raw Normal View History

#!/usr/bin/env bash
workflow=$1
shift 1
# shellcheck disable=SC2068
nix-build -A config.system.build.vm -k \
--argstr workflow "$workflow" \
@datadir@/@projectname@/configuration.nix \
@inputsArgs@ \
$@ \
-I extra-config=@datadir@/@projectname@ \
${NIX_EXTRA_ARGS[@]}