mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
container module: allowedDevices type to submodule
The optionSet type is deprecated in favor of submodule
This commit is contained in:
parent
63393b2d4e
commit
a67b597b22
1 changed files with 1 additions and 2 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue