lan-config: handle nested options

This commit is contained in:
DavHau
2023-08-09 18:19:36 +02:00
parent 563c04913e
commit cd048c2114
2 changed files with 33 additions and 1 deletions

View File

@@ -56,7 +56,13 @@ rec {
inherit (option) description;
};
in
if option._type != "option"
# handle nested options (not a submodule)
if ! option ? _type
then parseOptions option
# throw if not an option
else if option._type != "option"
then throw "parseOption: not an option"
# parse nullOr