From 4a022eaf780095d0595f9847e91e9118f362ec17 Mon Sep 17 00:00:00 2001 From: Sean Murphy Date: Mon, 12 Feb 2024 14:31:12 +0100 Subject: [PATCH] feat(qcow): add support for specifying contents in a qcow image via specialArgs --- formats/qcow.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/formats/qcow.nix b/formats/qcow.nix index 0d0aa80a..7e57fc31 100644 --- a/formats/qcow.nix +++ b/formats/qcow.nix @@ -5,7 +5,10 @@ modulesPath, specialArgs, ... -}: { +}: +let + contents = specialArgs.qcow.contents or []; +in { # for virtio kernel drivers imports = [ "${toString modulesPath}/profiles/qemu-guest.nix" @@ -33,6 +36,7 @@ diskSize = specialArgs.diskSize or "auto"; format = "qcow2"; partitionTableType = "hybrid"; + contents = contents; }; formatAttr = "qcow";