containers module: optionSet -> submodule

This commit is contained in:
Eric Sagnes 2016-09-11 19:47:22 +09:00
parent 062928c3ad
commit 69713a882c

View File

@ -391,9 +391,8 @@ in
}; };
extraVeths = mkOption { extraVeths = mkOption {
type = types.attrsOf types.optionSet; type = with types; attrsOf (submodule networkOptions);
default = {}; default = {};
options = networkOptions;
description = '' description = ''
Extra veth-pairs to be created for the container Extra veth-pairs to be created for the container
''; '';
@ -408,8 +407,7 @@ in
}; };
bindMounts = mkOption { bindMounts = mkOption {
type = types.loaOf types.optionSet; type = with types; loaOf (submodule bindMountOpts);
options = [ bindMountOpts ];
default = {}; default = {};
example = { "/home" = { hostPath = "/home/alice"; example = { "/home" = { hostPath = "/home/alice";
isReadOnly = false; }; isReadOnly = false; };