container module: allowedDevices type to submodule

The optionSet type is deprecated in favor of submodule
This commit is contained in:
Eric Sagnes 2016-10-02 14:07:00 +09:00
parent 63393b2d4e
commit a67b597b22

View File

@ -502,8 +502,7 @@ in
};
allowedDevices = mkOption {
type = types.listOf types.optionSet;
options = [ allowedDeviceOpts ];
type = with types; listOf (submodule allowedDeviceOpts);
default = [];
example = [ { node = "/dev/net/tun"; modifier = "rw"; } ];
description = ''