| 21 Dec 2023 |
Lily Foster | yeah, one sec. getting personal laptop out | 16:01:44 |
Lily Foster | In reply to @peter-lustig:matrix.org could you show me how I would do that in my current flake the values don't matter during build right? so they could be empty strings for all your package cares? | 16:03:49 |
peter-lustig | yeah i think so | 16:04:21 |
peter-lustig | worth a try | 16:04:28 |
Lily Foster | (dynamically grabbing them from the env when they are needed rather than importing from a virtual module would probably be more robust, and would also handle things like the env vars changing during the lifetime of the program better) | 16:04:51 |
Lily Foster | you can do something like this though:
env = {
GITHUB_CLIENT_ID = "";
GITHUB_CLIENT_SECRET = "";
...
}
| 16:05:19 |
Lily Foster | on the derivation | 16:05:23 |
peter-lustig | In reply to @lily:lily.flowers (dynamically grabbing them from the env when they are needed rather than importing from a virtual module would probably be more robust, and would also handle things like the env vars changing during the lifetime of the program better) yeah i had it dynamic before and everything worked, but look at this:
https://kit.svelte.dev/docs/migrating-to-sveltekit-2#dynamic-environment-variables-cannot-be-used-during-prerendering
| 16:05:33 |