Under no circumstance would I allow my projects to be configured by a full-blown programming language. There is no way to ensure that there are no regressions under different configurations. The amount of complexity introduced just for configuration is insane.
If you feel the need to put code in your runtime config, that means your design sucks.
If you feel the need to put code in your runtime config, that means your design sucks.