amazon-image: fix image.extension value for vpc/vhd files

vpc files use the extension "vhd". `make-disk-image-nix` contains a
lookup table, but does not expose that. vpc is the only format
supported by the amazon image which is affected. Format and extension
are the same for raw and qcow2.
This commit is contained in:
phaer
2025-05-22 00:45:11 +02:00
committed by Philip Taron
parent a82b5727f9
commit 8cbc6d6da6

View File

@@ -88,7 +88,7 @@ in
config.system.nixos.tags = [ "amazon" ];
config.system.build.image = config.system.build.amazonImage;
config.image.extension = cfg.format;
config.image.extension = if cfg.format == "vpc" then "vhd" else cfg.format;
config.system.build.amazonImage =
let