supabase/postgres

Nix cache is not documented

Opened this issue · 1 comments

Problem

There's no doc explaining how to use the Nix cache, when you do nix develop it will compile everything.

One has to hunt the echo commands from:

RUN echo "substituters = https://cache.nixos.org https://nix-postgres-artifacts.s3.amazonaws.com" >> /etc/nix/nix.conf
RUN echo "trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=%" >> /etc/nix/nix.conf

Then sudo pkill nix-daemon for Nix to pick the updated settings (ref)

Solution

Document this

It can be scripted in the flake too