From a67b597b22b6572b08b0fbd875299a052efab02e Mon Sep 17 00:00:00 2001 From: Eric Sagnes Date: Sun, 2 Oct 2016 14:07:00 +0900 Subject: [PATCH] container module: allowedDevices type to submodule The optionSet type is deprecated in favor of submodule --- nixos/modules/virtualisation/containers.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/virtualisation/containers.nix b/nixos/modules/virtualisation/containers.nix index b3055f49f9b..5e1cfcdfc6f 100644 --- a/nixos/modules/virtualisation/containers.nix +++ b/nixos/modules/virtualisation/containers.nix @@ -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 = ''