Make fileSystems example literal.
This fixes the attribute names showing up unquoted in the options documentation.
This commit is contained in:
parent
20a8349d62
commit
6d5ed7d971
@ -111,7 +111,8 @@ in
|
|||||||
|
|
||||||
fileSystems = mkOption {
|
fileSystems = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
example = {
|
example = literalExample ''
|
||||||
|
{
|
||||||
"/".device = "/dev/hda1";
|
"/".device = "/dev/hda1";
|
||||||
"/data" = {
|
"/data" = {
|
||||||
device = "/dev/hda2";
|
device = "/dev/hda2";
|
||||||
@ -119,7 +120,8 @@ in
|
|||||||
options = [ "data=journal" ];
|
options = [ "data=journal" ];
|
||||||
};
|
};
|
||||||
"/bigdisk".label = "bigdisk";
|
"/bigdisk".label = "bigdisk";
|
||||||
};
|
}
|
||||||
|
'';
|
||||||
type = types.loaOf types.optionSet;
|
type = types.loaOf types.optionSet;
|
||||||
options = [ fileSystemOpts ];
|
options = [ fileSystemOpts ];
|
||||||
description = ''
|
description = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user