Skip to content

Commit

Permalink
Fix new image build
Browse files Browse the repository at this point in the history
  • Loading branch information
arianvp committed Feb 4, 2024
1 parent 36f7b9c commit 1bda092
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/amazon-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ in
pkgs.runCommand config.system.build.image.name { } ''
mkdir -p $out
mkdir -p $out/nix-support
${pkgs.qemu-utils}/bin/qemu-img convert -f raw -O vpc ${config.system.build.image}/image.raw $out/image.vhd
${pkgs.qemu-utils}/bin/qemu-img convert -f raw -O vpc ${config.system.build.image}/${config.image.repart.imageFile} $out/${config.image.repart.imageFileBasename}.vhd
cat <<EOF > $out/nix-support/image-info.json
{
"boot_mode": "uefi",
"label": "${config.system.nixos.label}",
"system": "${pkgs.stdenv.hostPlatform.system}",
"file": "$out/image.vhd"
"file": "$out/${config.image.repart.imageFileBasename}.vhd"
}
EOF
'';
Expand Down

0 comments on commit 1bda092

Please sign in to comment.