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