-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
base: develop
Are you sure you want to change the base?
Conversation
``` | ||
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' |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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'
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
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