link library feature configuration to part configuration

Let's say we have a part document with two configurations "first" and "second".

Let's assume we have some feature with a dimension (e.g. height). We can link the dimension to the configuration of the part, i.e. in configuration "first" it might be 80 and in configuration "second" it might be 60. So far so good.

Now let's assume we have a library feature that has different configurations - e.g. a kind of hole with different diameters like 10 or 20. (There are some standard library features provided by SolidWorks, e.g. in Design Library -> Features -> Metric -> Keyways.)

I want to build the part document so that, analoguous to the dimensions above, the configuration of the library feature is linked to the configuration of the part document. So for example, in part configuration "first", the library feature will have a configuration with diameter=10, and in part configuration "second", the library feature will have a configuration with diameter=20.

Is that possible? If yes, how? Can someone provide a mini example? You can use my attached example as a basis. It contains an extrude feature with a keyway library feature on it and the part has two configurations. Only the link between library feature config and part config is missing.

Thanks in advance for any help!

SolidworksConfigurations design Tables