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

Work with NIX_CONF_DIR #16

Open
allenap opened this issue Feb 6, 2020 · 0 comments · May be fixed by #17
Open

Work with NIX_CONF_DIR #16

allenap opened this issue Feb 6, 2020 · 0 comments · May be fixed by #17

Comments

@allenap
Copy link
Owner

allenap commented Feb 6, 2020

Nix itself doesn't have a story for saying "I want some project specific options", but firstaide could do something useful with NIX_CONF_DIR to make it work.

Quick idea: firstaide could write out a nix.conf in some situations:

Global NIX_CONF_DIR Project-specific NIX_CONF_DIR What do to
unset unset Nothing
unset project/etc Write new nix.conf: include /etc/nix, include project/etc
/some/thing unset Nothing
/some/thing project/etc Write new nix.conf: include /some/thing, include project/etc

Why include /etc/nix? From nix.conf(5): 'this is the "system-wide configuration file sysconfdir/nix/nix.conf'. It doesn't seem possible or at least obvious how to find out what Nix's notion of sysconfdir is, so we assume it's /etc for now.

@allenap allenap linked a pull request Feb 6, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant