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

NIX_CONFIG variable ignores -extra options #7560

Closed
nrdxp opened this issue Jan 5, 2023 · 3 comments
Closed

NIX_CONFIG variable ignores -extra options #7560

nrdxp opened this issue Jan 5, 2023 · 3 comments
Labels

Comments

@nrdxp
Copy link

nrdxp commented Jan 5, 2023

Describe the bug

The NIX_CONFIG environmental variable can be used to set valid nix.conf values directly in the environment, which is awesome, but the values preprended with extra- don't work as they do in regular config files.

Steps To Reproduce

run NIX_CONFIG='extra-substituters = https://example.com' nix show-config

Expected behavior

It should work as it does elsewhere.

nix-env --version output

nix (Nix) 2.12.1

@nrdxp nrdxp added the bug label Jan 5, 2023
nrdxp added a commit to divnix/std-action that referenced this issue Jan 5, 2023
@dermetfan
Copy link
Member

Works for me on 2.11.1:

❯ NIX_CONFIG='extra-substituters = https://example.com' nix show-config --json | jq -r .substituters.value[]
https://cache.nixos.org/
https://example.com

@nrdxp
Copy link
Author

nrdxp commented Jan 11, 2023

that's strange because I explicitly tried 2.11.1 to make sure it wasn't a regression

Now I can't reproduce it. There must have been some other factor at play 🤔

I'll close for now.

@nrdxp nrdxp closed this as completed Jan 11, 2023
@ryan4yin
Copy link

ryan4yin commented Dec 9, 2023

Seems related to #9487

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

No branches or pull requests

3 participants