1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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 { allowedDevices = mkOption {
type = types.listOf types.optionSet; type = with types; listOf (submodule allowedDeviceOpts);
options = [ allowedDeviceOpts ];
default = []; default = [];
example = [ { node = "/dev/net/tun"; modifier = "rw"; } ]; example = [ { node = "/dev/net/tun"; modifier = "rw"; } ];
description = '' description = ''