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. '';