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

docs: update readme with nix cache info #1091

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

samrose
Copy link
Contributor

@samrose samrose commented Aug 6, 2024

What kind of change does this PR introduce?

Updating README to reflect current state of affairs, and document how to set up nix binary cache

@samrose samrose requested a review from a team as a code owner August 6, 2024 13:43
README.md Outdated Show resolved Hide resolved
```
3. save changes to the `/etc/nix/nix.conf` file
4. On **linux**, run `sudo systemctl restart nix-daemon.service` on **macOS** run: `sudo launchctl stop org.nixos.nix-daemon` and `sudo launchctl start org.nixos.nix-daemon`
5. verify by running nix config show | grep 'substituters\|trusted-public-keys'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On my machine nix show-config is available but not nix config show. Maybe put it here as an alternative?

Using:

nix --version
nix (Nix) 2.17.0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yes, you do need to have experimental features for enabled in nix.conf

experimental-features = nix-command flakes

or when running the command --experimental-features 'nix-command flakes'

Copy link
Contributor Author

@samrose samrose Aug 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or you can just use nix show-config I'll update the README with this info

Co-authored-by: Steve Chavez <[email protected]>
substituters = https://cache.nixos.org https://nix-postgres-artifacts.s3.amazonaws.com
trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=% cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
```
3. save changes to the `/etc/nix/nix.conf` file
Copy link
Member

@steve-chavez steve-chavez Aug 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Editing this didn't work for me (nix show-config didn't show the updated values even after restarting nix daemon), but editing .config/nix/nix.conf worked. IMO it should be mentioned too.

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 this pull request may close these issues.

3 participants