@@ -391,9 +391,8 @@ in
391391 };
392392
393393 extraVeths = mkOption {
394− type = types.attrsOf types.optionSet;
394+ type = with types; attrsOf (submodule networkOptions);
395395 default = {};
396− options = networkOptions;
397396 description = ''
398397 Extra veth-pairs to be created for the container
399398 '';
@@ -408,8 +407,7 @@ in
408407 };
409408
410409 bindMounts = mkOption {
411− type = types.loaOf types.optionSet;
412− options = [ bindMountOpts ];
410+ type = with types; loaOf (submodule bindMountOpts);
413411 default = {};
414412 example = { "/home" = { hostPath = "/home/alice";
415413 isReadOnly = false; };