Allowing variables in default.toml

It would be awesome to have variables from pkg and sys available for use in default.toml. Some examples would be sys.ip for hostname or data files paths for pkg_data_paths. Thoughts?


Yes! Or if there was a way to update cfg variables from a hook. For example, I might want to set a var to a FQDN and I might only ever know the domain at runtime. My shell script hook can query the current domain which I will not know at build time and is also not included in the sys vars.

1 Like

@mwrock is more of what I would like to see. I am having a problem knowing if my database is bound to localhost or the external IP Address. If we could update a cfg variable with the address it is bound to instead of, that would be a better solution then what I am trying to do here