Skip to content

Conversation

samrose
Copy link
Collaborator

@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
@samrose samrose requested a review from steve-chavez August 6, 2024 13:43
```
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
Collaborator 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
Collaborator 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.

@samrose samrose closed this Apr 1, 2025
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