Application not getting loaded

Okay, that makes sense now, thanks for the answer! Then, I am fixing my issue in the wrong way.

I am writing a library and publishing it to hex. I want to make this library configurable I use compile env values throughout. But, as config.exs of my library won’t get published to hex as well as not available to the user of the library, I want to provide some defaults. As far as I understood I have only 2 options at this:

  1. Use compile_env/3 and provide defaults there. But that seems like a bad idea, as all of my defaults will be scattered.
  2. Use the :env key in application. Which works a bit differently than I expected and not an option for me.

Am I missing something? Is this truly the only available options?