Skip to content

multiple env-file settings #540

@MagicRB

Description

@MagicRB

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions