mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user