diff options
author | danbst <abcz2.uprola@gmail.com> | 2019-01-26 21:44:05 +0200 |
---|---|---|
committer | danbst <abcz2.uprola@gmail.com> | 2019-01-31 00:41:10 +0200 |
commit | 27982b408e465554b8831f492362bc87ed0ec02a (patch) | |
tree | 9d91ef0747a5e1ed4a425e3e86a1b7172a8a16e4 /lib/types.nix | |
parent | aa2e63ce5ed6e24d73eaefe61489ece46f7460d7 (diff) |
types.optionSet: deprecate and remove last usages
Diffstat (limited to 'lib/types.nix')
-rw-r--r-- | lib/types.nix | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/types.nix b/lib/types.nix index 2ec8fd987c1a3..7a88e1b9e36be 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -469,10 +469,7 @@ rec { # Obsolete alternative to configOf. It takes its option # declarations from the ‘options’ attribute of containing option # declaration. - optionSet = mkOptionType { - name = builtins.trace "types.optionSet is deprecated; use types.submodule instead" "optionSet"; - description = "option set"; - }; + optionSet = builtins.throw "types.optionSet is deprecated; use types.submodule instead" "optionSet"; # Augment the given type with an additional type check function. addCheck = elemType: check: elemType // { check = x: elemType.check x && check x; }; |