···2424attic use foo
2525```
26262727+On NixOS you can add the cache declaratively in your `configuration.nix`:
2828+```
2929+nix.settings = {
3030+ substituters = [
3131+ "BINARY_CACHE_ENDPOINT"
3232+ ];
3333+ trusted-public-keys = [
3434+ "CACHE_PUBLIC_KEY"
3535+ ];
3636+};
3737+```
3838+3939+To view the binary cache endpoint and cache public key for `foo`:
4040+```
4141+attic cache info foo
4242+```
4343+2744## Disabling a cache
28452946To configure Nix to no longer use a cache, remove the corresponding entries from the list of `substituters` and `trusted-public-keys` in `~/.config/nix/nix.conf`