make-disk-image: convert into NixOS module

As `makeDiskImages` always requires a NixOS configuration, we can
simplify the code by convering it into a NixOS module. Then we can make
it responsible for populating `system.build.diskoImages` and
`system.build.diskoImagesScript`.
This commit is contained in:
Michael Hoang committed 2024-09-14 19:35:44 +10:00
1 parent 4ef99d8ec4
commit cc4d4a4b91
7 files changed
+193 -165

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@
imageSize = lib.mkOption {
type = lib.types.strMatching "[0-9]+[KMGTP]?";
description = ''
size of the image if the makeDiskImages function from diksoLib is used.
size of the image when disko images are created
is used as an argument to "qemu-img create ..."
'';
default = "2G";