Binary Cache: Difference between revisions
imported>Sean1708 No edit summary |
imported>Clerie |
||
| Line 166: | Line 166: | ||
or temporarily as explained above. | or temporarily as explained above. | ||
=== Binary cache hint in Flakes === | |||
You can place a hint to your binary cache in your Flake so when someone builds an output of your Flake, the nix command will ask interactively to trust the specified binary cache. | |||
<syntaxHighlight lang=nix> | |||
{ | |||
outputs = { ... }: { | |||
nixConfig = { | |||
extra-substituters = [ | |||
"https://colmena.cachix.org" | |||
]; | |||
extra-trusted-public-keys = [ | |||
"colmena.cachix.org-1:7BzpDnjjH8ki2CT3f6GdOk7QAzPOl+1t3LvTLXqYcSg=" | |||
]; | |||
}; | |||
}; | |||
} | |||
</syntaxHighlight> | |||
== Populating a binary cache == | == Populating a binary cache == | ||