Incorrect (?) section about adding binary caches
Nobody has claimed this yet.
- Dominant language
- Nix
- Stars
- 4k
- Forks
- 339
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 7
Description
In faq.rst there is a section about binary caches:
How do I add a new binary cache?
Using Nix:
$ echo "trusted-binary-caches = https://hydra.snabb.co" >> /etc/nix/nix.conf
This doesn't seem correct, because single-user Nix doesn't use /etc/nix by default (only when NIX_CONF_DIR environment variable is set to /etc/nix, tested on 1.11.15) - I'm not sure what directory it uses then.
It might make sense to add "set environment variable NIX_CONF_DIR to /etc/nix in your bashrc" to this section, but I'm not sure what other side effects in will bring.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the binary-cache section in faq.rst and verify how single-user Nix locates its configuration, including the effect of NIX_CONF_DIR. Update the section so its configuration path and any required environment setup are correct, with instructions that work for the reported Nix version and clearly explain the expected result.
Written by the indexing model from the issue text.
Assessment
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- Half a day
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100