https://nbg1.your-objectstorage.com/test-cache
public-key:
test-cache:vUfGsNg1GFZRW1wHSFsjcklY2fpzGkPntpdOoW3mhTA=
Flake: Paste into your flake.nix
Configure your flakes to suggest the cache to users. Anyone running nix build /
nix develop against your flake
gets the cache offered automatically (subject to the user
accepting nixConfig).
{
nixConfig = {
extra-substituters = [ "https://nbg1.your-objectstorage.com/test-cache" ];
extra-trusted-public-keys = [ "test-cache:vUfGsNg1GFZRW1wHSFsjcklY2fpzGkPntpdOoW3mhTA=" ];
};
# ... rest of your flake ...
}
NixOS: Drop into any module
Configure your NixOS system to use the cache for all nix invocations and all users.
{
nix.settings = {
extra-substituters = [ "https://nbg1.your-objectstorage.com/test-cache" ];
extra-trusted-public-keys = [ "test-cache:vUfGsNg1GFZRW1wHSFsjcklY2fpzGkPntpdOoW3mhTA=" ];
};
}
Non-NixOS: ~/.config/nix/nix.conf or /etc/nix/nix.conf
For any host with nix installed: macOS, generic Linux, WSL. Append these lines.
extra-substituters = https://nbg1.your-objectstorage.com/test-cache extra-trusted-public-keys = test-cache:vUfGsNg1GFZRW1wHSFsjcklY2fpzGkPntpdOoW3mhTA=