Documentation for this is incomplete. Contributions are happily considered! See this for potential alternatives.
Systemd User Environment Variables Configuration
x. Open file
~/.config/environment.d/electrumx.conf in a text editor of your choice as a regular, non-root user.
If you are using a graphical environment, run.
If you are using a terminal, run.
x. Paste the following contents.