Skip to content

Commit

Permalink
nixos/lib/make-disk-image.nix: abritary format input
Browse files Browse the repository at this point in the history
Pass unrecognized format types as the output file extension to
qemu-img. The motivation is support for "vdi" output.
  • Loading branch information
ehmry committed Jul 31, 2020
1 parent 0645303 commit 3f92283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/lib/make-disk-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ let format' = format; in let
vdi = "vdi";
vpc = "vhd";
raw = "img";
}.${format};
}.${format} or format;

rootPartition = { # switch-case
legacy = "1";
Expand Down

0 comments on commit 3f92283

Please sign in to comment.