make-disk-image: Allow passing of image baseName (#359326)

authored by Jörg Thalheim and committed by GitHub 41961a54 e605aab7

+4 -1
+4 -1
nixos/lib/make-disk-image.nix
··· 163 , # Disk image format, one of qcow2, qcow2-compressed, vdi, vpc, raw. 164 format ? "raw" 165 166 # Whether to fix: 167 # - GPT Disk Unique Identifier (diskGUID) 168 # - GPT Partition Unique Identifier: depends on the layout, root partition UUID can be controlled through `rootGPUID` option ··· 208 209 compress = lib.optionalString (format' == "qcow2-compressed") "-c"; 210 211 - filename = "nixos." + { 212 qcow2 = "qcow2"; 213 vdi = "vdi"; 214 vpc = "vhd";
··· 163 , # Disk image format, one of qcow2, qcow2-compressed, vdi, vpc, raw. 164 format ? "raw" 165 166 + , # Disk image filename, without any extensions (e.g. `image_1`). 167 + baseName ? "nixos" 168 + 169 # Whether to fix: 170 # - GPT Disk Unique Identifier (diskGUID) 171 # - GPT Partition Unique Identifier: depends on the layout, root partition UUID can be controlled through `rootGPUID` option ··· 211 212 compress = lib.optionalString (format' == "qcow2-compressed") "-c"; 213 214 + filename = "${baseName}." + { 215 qcow2 = "qcow2"; 216 vdi = "vdi"; 217 vpc = "vhd";