make-disk-image: add useVirtualDevices option

This commit is contained in:
June Stepp committed 2026-06-14 15:03:34 -05:00
1 parent ff8702b4de
commit 10f31ba086
2 files changed
+30 -14

No files matched your search

+9
View File
@@ -134,6 +134,15 @@ in
description = "QEMU image format to use for the disk images";
default = "raw";
};
useVirtualDevices = lib.mkOption {
type = lib.types.bool;
description = ''
Replace device names with ones usable in VMs. Ex: `/dev/vda`.
Disable this if the disk image is for use on real hardware.
'';
default = true;
};
};
memSize = lib.mkOption {