Merge pull request #19150 from ericsagnes/fix/container-optionSet
container module: allowedDevices type to submodule
This commit is contained in:
commit
e13aea41e0
@ -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 = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user