aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/nixos/doc/manual/administration/network-problems.xml
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/nixos/doc/manual/administration/network-problems.xml')
-rw-r--r--nixpkgs/nixos/doc/manual/administration/network-problems.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/nixos/doc/manual/administration/network-problems.xml b/nixpkgs/nixos/doc/manual/administration/network-problems.xml
new file mode 100644
index 00000000000..570f5835884
--- /dev/null
+++ b/nixpkgs/nixos/doc/manual/administration/network-problems.xml
@@ -0,0 +1,27 @@
+<section xmlns="http://docbook.org/ns/docbook"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ version="5.0"
+ xml:id="sec-nix-network-issues">
+ <title>Network Problems</title>
+
+ <para>
+ Nix uses a so-called <emphasis>binary cache</emphasis> to optimise building a
+ package from source into downloading it as a pre-built binary. That is,
+ whenever a command like <command>nixos-rebuild</command> needs a path in the
+ Nix store, Nix will try to download that path from the Internet rather than
+ build it from source. The default binary cache is
+ <uri>https://cache.nixos.org/</uri>. If this cache is unreachable, Nix
+ operations may take a long time due to HTTP connection timeouts. You can
+ disable the use of the binary cache by adding <option>--option
+ use-binary-caches false</option>, e.g.
+<screen>
+# nixos-rebuild switch --option use-binary-caches false
+</screen>
+ If you have an alternative binary cache at your disposal, you can use it
+ instead:
+<screen>
+# nixos-rebuild switch --option binary-caches http://my-cache.example.org/
+</screen>
+ </para>
+</section>