From 12afb737840b0e31972007203f9f72e40a5dde6e Mon Sep 17 00:00:00 2001 From: Sandro Date: Thu, 14 Nov 2024 18:08:34 +0100 Subject: [PATCH] nixos/virtualisation: fix rendering of example in diskSize --- nixos/modules/virtualisation/disk-size-option.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/virtualisation/disk-size-option.nix b/nixos/modules/virtualisation/disk-size-option.nix index 487c3adfe2b7..ea85682b0423 100644 --- a/nixos/modules/virtualisation/disk-size-option.nix +++ b/nixos/modules/virtualisation/disk-size-option.nix @@ -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. '';