Make fileSystems example literal.

This fixes the attribute names showing up unquoted in the options documentation.
This commit is contained in:
Scott Olson 2016-06-19 01:02:24 -06:00
parent 20a8349d62
commit 6d5ed7d971
1 changed files with 11 additions and 9 deletions

View File

@ -111,15 +111,17 @@ in
fileSystems = mkOption {
default = {};
example = {
"/".device = "/dev/hda1";
"/data" = {
device = "/dev/hda2";
fsType = "ext3";
options = [ "data=journal" ];
};
"/bigdisk".label = "bigdisk";
};
example = literalExample ''
{
"/".device = "/dev/hda1";
"/data" = {
device = "/dev/hda2";
fsType = "ext3";
options = [ "data=journal" ];
};
"/bigdisk".label = "bigdisk";
}
'';
type = types.loaOf types.optionSet;
options = [ fileSystemOpts ];
description = ''