From 3b778f10eb275573da9f5c8a7a49e774200b87e5 Mon Sep 17 00:00:00 2001 From: qbisi Date: Mon, 14 Oct 2024 22:40:12 +0800 Subject: [PATCH] docs: add docs on how to use imageName in disk type. --- docs/disko-images.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/disko-images.md b/docs/disko-images.md index 96387f7..3a026dc 100644 --- a/docs/disko-images.md +++ b/docs/disko-images.md @@ -90,6 +90,14 @@ In the this example we create a flake containing a nixos configuration for ## Additional Configuration +- For custom image name output, define the image name in your Disko configuration: + + ```console + disko.devices.disk..imageName = "nixos-x86_64-linux-generic-btrfs"; # Set your preferred name + ``` + + The image scirpt will produce `nixos-x86_64-linux-generic-btrfs.raw` instead of `.raw`. + - For virtual drive use, define the image size in your Disko configuration: ```console