1 { lib, config, options, ... }:
8 # fun.<function-body>.a
12 type = types.functionTo (types.submodule {
13 options.a = lib.mkOption { default = "a"; };
19 # fun.<function-body>.b
23 type = types.functionTo (types.submodule {
24 options.b = lib.mkOption { default = "b"; };
35 default = lib.concatStringsSep " " (lib.attrValues (config.fun (throw "shouldn't use input param")));
38 optionsResult = lib.mkOption
41 default = lib.concatStringsSep " "
47 else [ (lib.showOption v.loc) ]
50 (options.fun.type.getSubOptions [ "fun" ])
57 config.fun = lib.mkMerge
59 (input: { b = "bee"; })