A fork of attic a self-hostable Nix Binary Cache server
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: usage instructions for binary cache with NixOS (declaratively)

gytic 94a4dd10 c1cfee9b

+17
+17
book/src/user-guide/README.md
··· 24 24 attic use foo 25 25 ``` 26 26 27 + On NixOS you can add the cache declaratively in your `configuration.nix`: 28 + ``` 29 + nix.settings = { 30 + substituters = [ 31 + "BINARY_CACHE_ENDPOINT" 32 + ]; 33 + trusted-public-keys = [ 34 + "CACHE_PUBLIC_KEY" 35 + ]; 36 + }; 37 + ``` 38 + 39 + To view the binary cache endpoint and cache public key for `foo`: 40 + ``` 41 + attic cache info foo 42 + ``` 43 + 27 44 ## Disabling a cache 28 45 29 46 To 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`