Skip to content
Discussion options

You must be logged in to vote

prefixContent and suffixContent option from makeWrapper module does this, kinda awkward because there is no set, but if it was not set, then it would set it.

It is not compatible with wrapperImplementation = "binary" though only the in-house implementation "nix" (the default) and "shell" (but this particular usage of it would not work with "shell" either, because that expands at build time, so, only the in-house one)

With the in-house ("nix", default) implementation you also could:

 config.env.OPENROUTER_API_KEY = {
   data = ''"$(cat /run/secrets/api-keys/openrouter)"'';
   esc-fn = v: v;
};

You can always set esc-fn but, the other 2 implementations would result in that expanding at buil…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BirdeeHub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #304 on February 22, 2026 01:12.