infra/nix/tests/buildvmwithbootloader/build-vm.sh

17 lines
420 B
Bash
Raw Permalink Normal View History

2018-09-23 14:09:35 +02:00
#!/usr/bin/env bash
set -x
2024-11-15 10:17:56 +01:00
rm ./*.qcow2
2018-09-23 14:09:35 +02:00
rm result*
set -e
BUILD_NIXPKGS="${BUILD_NIXPKGS:-${HOME}/src/github/NixOS/nixpkgs.dev}"
NIXOS_CONFIG="${NIXOS_CONFIG_OVERRIDE:-${PWD}/configuration.nix}"
nix-build -K --show-trace build-vm.nix \
2024-11-15 10:17:56 +01:00
--arg vmPkgsPath '<nixos-18.03>' \
--argstr buildPkgsPath "${BUILD_NIXPKGS}" \
--argstr nixosConfigPath "${NIXOS_CONFIG}" \
-A vmWithBootLoaderMixed
2018-09-23 14:09:35 +02:00
2024-11-15 10:17:56 +01:00
"./result/bin/run-*-vm"