virtualisation/disk-image: fix image.extension

(cherry picked from commit b033e0c4b6)
This commit is contained in:
phaer
2025-05-23 12:28:53 +02:00
committed by github-actions[bot]
parent 43e97212f6
commit f1ddf462ce

View File

@@ -50,7 +50,7 @@ in
};
system.nixos.tags = [ cfg.format ] ++ lib.optionals cfg.efiSupport [ "efi" ];
image.extension = cfg.format;
image.extension = if cfg.format == "raw" then "img" else cfg.format;
system.build.image = import ../../lib/make-disk-image.nix {
inherit lib config pkgs;
inherit (config.virtualisation) diskSize;