From ade21e2c96b68a33f3614eea1fcdaa36c9ef77d3 Mon Sep 17 00:00:00 2001 From: whs Date: Tue, 24 Dec 2024 10:43:19 +0800 Subject: [PATCH 1/2] Fix typo --- lib/make-disk-image.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/make-disk-image.nix b/lib/make-disk-image.nix index 2c0808c..60f437d 100644 --- a/lib/make-disk-image.nix +++ b/lib/make-disk-image.nix @@ -121,7 +121,7 @@ in { buildInputs = dependencies; inherit preVM QEMU_OPTS; - postVm = cfg.extraPostVM; + postVM = cfg.extraPostVM; inherit (diskoCfg) memSize; } (partitioner + installer)); -- knotmirror 0.0.1 From 79a12e659bb3fd055e61922fec7b70426464c6d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 24 Dec 2024 09:10:57 +0100 Subject: [PATCH 2/2] disko: fix postVM beeing empty --- module.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module.nix b/module.nix index 6543e11..cb95f02 100644 --- a/module.nix +++ b/module.nix @@ -59,9 +59,9 @@ in extraPostVM = lib.mkOption { type = lib.types.lines; description = '' - extra shell code to execute once the disk image(s) have been succesfully created and moved to $out + extra shell code to execute once the disk image(s) have been successfully created and moved to $out ''; - default = ""; + default = ":"; example = lib.literalExpression '' ''${pkgs.zstd}/bin/zstd --compress $out/*raw rm $out/*raw -- knotmirror 0.0.1