nixos/virtualisation: fix rendering of example in diskSize
This commit is contained in:
parent
2408c7f62d
commit
12afb73784
@ -16,7 +16,7 @@ in
|
|||||||
virtualisation.diskSize = lib.mkOption {
|
virtualisation.diskSize = lib.mkOption {
|
||||||
type = t.either (t.enum [ "auto" ]) t.ints.positive;
|
type = t.either (t.enum [ "auto" ]) t.ints.positive;
|
||||||
default = if config.virtualisation.diskSizeAutoSupported then "auto" else 1024;
|
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 = ''
|
description = ''
|
||||||
The disk size in megabytes of the virtual machine.
|
The disk size in megabytes of the virtual machine.
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user