I’m not sure what you mean by “doesn’t pick up”, but I would be surprised if what you describe doesn’t work. That’s in line with what I’m doing all the time on both MacOS and Linux.
We’re using this Go function to read env vars:
I’m not familiar with Arch Linux; maybe they have some way of filtering the env variables that’s available to the running process?