Binary Cache: Difference between revisions
imported>Tfc Create wiki page about creating your own binary cache |
imported>Tfc m add note about where the pubkey comes from |
||
| Line 87: | Line 87: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
On some other machine, test if nix can realize the same package via the binary cache: | On some other machine, test if nix can realize the same package via the binary cache (the content of the <code>trusted-public-keys</code> is the content of the file <code>cache-pub-key.pem</code> which you should share with users of the binary cache!): | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ nix-store -r /nix/store/gdh8165b7rg4y53v64chjys7mbbw89f9-hello-2.10 --option substituters http://binarycache.mydomain.com --option trusted-public-keys binarycache.mydomain.com1:dsafdafDFW123fdasfa123124FADSAD | $ nix-store -r /nix/store/gdh8165b7rg4y53v64chjys7mbbw89f9-hello-2.10 --option substituters http://binarycache.mydomain.com --option trusted-public-keys binarycache.mydomain.com1:dsafdafDFW123fdasfa123124FADSAD | ||