Skip to content

Commit

Permalink
add flags as array
Browse files Browse the repository at this point in the history
  • Loading branch information
bri committed Feb 14, 2024
1 parent 450691c commit 0e99012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ _THISFILE(){
# server to scp artifacts to
UPLOAD_SERVER=ci-upload.ibeep.com
UPLOAD_USER=ci-upload

IMAGE_BUILD_FLAGS+=( --print-out-paths --show-trace --accept-flake-config )
# hashtable of destdirs
declare -A DESTDIRS=(
[proxmox]="dump"
Expand Down Expand Up @@ -116,7 +116,7 @@ WITH_CACHIX(){
BUILD_IMAGE(){
mkdir -p build
ARCH="$(_ARCH)"
BUILD_FILE="$(nix build ".#nixosConfigurations.$(_TARGET)@${ARCH//arm/aarch}-${OS}.config.formats.$(_FORMAT)" --print-out-paths --show-trace --accept-flake-config)"
BUILD_FILE="$(nix build ".#nixosConfigurations.$(_TARGET)@${ARCH//arm/aarch}-${OS}.config.formats.$(_FORMAT)" ${IMAGE_BUILD_FLAGS[@]})"
cp "${BUILD_FILE}" "build/"
}

Expand Down

0 comments on commit 0e99012

Please sign in to comment.