Your background
Maintainer of NixNG
The problem
In NixNG we allow the user to specify both environment variables statically as part of Nix evaluation and also a environment file which should be loaded at runtime, the idea is to be able to set PATH to something as well as pass secrets/configs to services which accept secrets/config via environment variables. Without plural env-file we'd have no way to combine the two env files and we'd have to resort to running every service in a script or another compiled binary. Currently this is blocking a dinit upgrade...
The solution
Make env-file and a list settings, I already had a patch for that but it doesn't apply anymore and with the recent "make env-file handle relative paths based on the service directory" changes, I'm not confident in up-porting the patch. Not sure how to handle the dirfd's correctly.
Your background
Maintainer of NixNG
The problem
In NixNG we allow the user to specify both environment variables statically as part of Nix evaluation and also a environment file which should be loaded at runtime, the idea is to be able to set
PATHto something as well as pass secrets/configs to services which accept secrets/config via environment variables. Without pluralenv-filewe'd have no way to combine the two env files and we'd have to resort to running every service in a script or another compiled binary. Currently this is blocking a dinit upgrade...The solution
Make
env-fileand a list settings, I already had a patch for that but it doesn't apply anymore and with the recent "makeenv-filehandle relative paths based on the service directory" changes, I'm not confident in up-porting the patch. Not sure how to handle the dirfd's correctly.