From fcd3d98d26a26d3adc2ffddb0908e60b08fc4b03 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 4 Jun 2024 20:18:50 +0100 Subject: [PATCH] doc: fix make-disk-image.nix example (cherry picked from commit 1a297df41b2e7c5ad96327298749457cba817afa) --- doc/build-helpers/images/makediskimage.section.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/build-helpers/images/makediskimage.section.md b/doc/build-helpers/images/makediskimage.section.md index e50479c4e83e..3edfa906aa6a 100644 --- a/doc/build-helpers/images/makediskimage.section.md +++ b/doc/build-helpers/images/makediskimage.section.md @@ -85,14 +85,14 @@ let in make-disk-image { inherit pkgs lib; - config = evalConfig { + inherit (evalConfig { modules = [ { fileSystems."/" = { device = "/dev/vda"; fsType = "ext4"; autoFormat = true; }; boot.grub.device = "/dev/vda"; } ]; - }; + }) config; format = "qcow2"; onlyNixStore = false; partitionTableType = "legacy+gpt"; @@ -104,5 +104,3 @@ in memSize = 2048; # Qemu VM memory size in megabytes. Defaults to 1024M. } ``` - -