No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

49 líneas
1.6 KiB

  1. <section xmlns="http://docbook.org/ns/docbook"
  2. xmlns:xlink="http://www.w3.org/1999/xlink"
  3. xmlns:xi="http://www.w3.org/2001/XInclude"
  4. version="5.0"
  5. xml:id="sec-installing-behind-proxy">
  6. <title>Installing behind a proxy</title>
  7. <para>
  8. To install NixOS behind a proxy, do the following before running
  9. <literal>nixos-install</literal>.
  10. </para>
  11. <orderedlist numeration="arabic">
  12. <listitem>
  13. <para>
  14. Update proxy configuration in
  15. <literal>/mnt/etc/nixos/configuration.nix</literal> to keep the internet
  16. accessible after reboot.
  17. </para>
  18. <programlisting>
  19. networking.proxy.default = &quot;http://user:password@proxy:port/&quot;;
  20. networking.proxy.noProxy = &quot;127.0.0.1,localhost,internal.domain&quot;;
  21. </programlisting>
  22. </listitem>
  23. <listitem>
  24. <para>
  25. Setup the proxy environment variables in the shell where you are running
  26. <literal>nixos-install</literal>.
  27. </para>
  28. <screen>
  29. <prompt># </prompt>proxy_url=&quot;http://user:password@proxy:port/&quot;
  30. <prompt># </prompt>export http_proxy=&quot;$proxy_url&quot;
  31. <prompt># </prompt>export HTTP_PROXY=&quot;$proxy_url&quot;
  32. <prompt># </prompt>export https_proxy=&quot;$proxy_url&quot;
  33. <prompt># </prompt>export HTTPS_PROXY=&quot;$proxy_url&quot;
  34. </screen>
  35. </listitem>
  36. </orderedlist>
  37. <note>
  38. <para>
  39. If you are switching networks with different proxy configurations, use the
  40. <literal>specialisation</literal> option in
  41. <literal>configuration.nix</literal> to switch proxies at runtime. Refer to
  42. <xref linkend="ch-options" /> for more information.
  43. </para>
  44. </note>
  45. </section>