RFC: add runtime.exs
Hi,
there is currently a process in NixOS to add the mobilizon package and a corresponding service to enable users to run mobilizon simply. Here is the PR for reference https://github.com/NixOS/nixpkgs/pull/119132
The work being done corresponds to generating custom exs file with specific variables to run the release.
This work would mostly not be needed if there was a runtime.exs
file in the repo that allowed to override some variables at runtime.
Just to be sure it would look something like
import Config
# Configure your database
config :mobilizon, Mobilizon.Repo,
url: System.get_env("DB_URL"),
This file doesn't specifically need the DB_URL env_var, but it would include all the variables of your project that need to be set at runtime.
On the NixOS side, it would just be a matter of adding the relevant environment variables to the systemd service.
I'm opening this issue to see if you would be open to adding a runtime.exs. You might have other considerations that I don't know about.