1 { lib, options, ... }: with lib.types; {
3 options.fooDeclarations = lib.mkOption {
4 default = (options.free.type.getSubOptions [])._freeformOptions.foo.declarations;
7 options.free = lib.mkOption {
9 config._module.freeformType = lib.mkMerge [
11 options.foo = lib.mkOption {};
14 options.bar = lib.mkOption {};
20 config.free.xxx.foo = 10;
21 config.free.yyy.bar = 10;