Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FLAKE is not a very specific env var #88

Open
dpc opened this issue Apr 18, 2024 · 5 comments
Open

FLAKE is not a very specific env var #88

dpc opened this issue Apr 18, 2024 · 5 comments

Comments

@dpc
Copy link

dpc commented Apr 18, 2024

I just watched https://www.youtube.com/watch?v=DnA4xNTrrqY and I like the idea.

FLAKE is a very generic name for an env var and I'd prefer something like NIXOS_CONF_FLAKE or NH_OS_FLAKE (good practice to prefix globals like this with a name of a tool).

@viperML
Copy link
Owner

viperML commented Apr 18, 2024

I've had NH_FLAKE in the back of my mind, but at the same time haven't found any project that also uses FLAKE. Perhaps it is possible to parse both from the environment, with priority to the former

@dpc
Copy link
Author

dpc commented Apr 18, 2024

Definitely possible. I thought about _OS_ if nh was to handle more stuff. I don't know if that's the plan. One might have "NixOS configuration flake" and then some other flakes.

@Adda0
Copy link

Adda0 commented Apr 20, 2024

I agree that something like NH_OS_FLAKE or even NH_NIXOS_FLAKE, and maybe in the future NH_<OTHER>_FLAKE would be a great descriptive and conflict-free solution.

However, if I am not mistaken, one could use nh on non-NixOS system for, for example, managing their home manager configuration flake. So maybe something like NH(_MAIN)_CONFIG_FLAKE or similar to make the name of the env var more general, yet still descriptive?

@viperML
Copy link
Owner

viperML commented Apr 20, 2024

You can use wrapper-manager to wrap nh and not pollute the global environment

@Adda0
Copy link

Adda0 commented Apr 20, 2024

That is a very interesting project indeed. This approach would solve this issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants