git.iko.soy/typeable/nixpkgs
on master help sign in
containers module: optionSet -> submodule
commit69713a882ca0f3e1febf03c8f73b00d06d2cd2ae authorEric Sagnes <eric.sagnes@gmail.com> dateSun 11 Sep 2016, 19:47 (10 years ago) parent062928c
1 file changed+2−4
nixos/modules/virtualisation/containers.nix+2−4
nixos/modules/virtualisation/containers.nix+2−4
@@ -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; };