nixos/virtualisation: fix rendering of example in diskSize

This commit is contained in:
Sandro 2024-11-14 18:08:34 +01:00 committed by Sandro Jäckel
parent 2408c7f62d
commit 12afb73784
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -16,7 +16,7 @@ in
virtualisation.diskSize = lib.mkOption {
type = t.either (t.enum [ "auto" ]) t.ints.positive;
default = if config.virtualisation.diskSizeAutoSupported then "auto" else 1024;
defaultText = "\"auto\" if diskSizeAutoSupported, else 1024";
defaultText = lib.literalExpression "if virtualisation.diskSizeAutoSupported then \"auto\" else 1024";
description = ''
The disk size in megabytes of the virtual machine.
'';