Skip to content

Commit

Permalink
container module: allowedDevices type to submodule
Browse files Browse the repository at this point in the history
The optionSet type is deprecated in favor of submodule
  • Loading branch information
ericsagnes committed Oct 2, 2016
1 parent 63393b2 commit a67b597
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nixos/modules/virtualisation/containers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down

0 comments on commit a67b597

Please sign in to comment.