virtualisation/disk-image: fix image.extension

This commit is contained in:
phaer
2025-05-23 12:28:53 +02:00
committed by Philip Taron
parent 5aba7c7131
commit b033e0c4b6

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;