From cb1ca420092c8854592afcf1cc0245b7245358f1 Mon Sep 17 00:00:00 2001 From: Venkateswara Rao Mandela Date: Sat, 1 Sep 2018 19:42:35 +0530 Subject: nixos/doc: add instructions for installation behind a proxy (#45854) The instructions to install nixos behind a proxy were not clear. While one could guess that setting http_proxy variables can get the install rolling, one could end up with an installed system where the proxy settings for the nix-daemon are not configured. This commit updates the documentation with 1. steps to install behind a proxy 2. configure the global proxy settings so that nix-daemon can access internet. 3. Pointers to use nesting.clone in case one has to use different proxy settings on different networks. --- nixos/modules/installer/tools/nixos-generate-config.pl | 4 ++++ 1 file changed, 4 insertions(+) mode change 100644 => 100755 nixos/modules/installer/tools/nixos-generate-config.pl (limited to 'nixos/modules/installer/tools/nixos-generate-config.pl') diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl old mode 100644 new mode 100755 index bb201d97ded..04678c919c2 --- a/nixos/modules/installer/tools/nixos-generate-config.pl +++ b/nixos/modules/installer/tools/nixos-generate-config.pl @@ -574,6 +574,10 @@ $bootLoaderConfig # networking.hostName = "nixos"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. + # Configure network proxy if necessary + # networking.proxy.default = "http://user:password@proxy:port/"; + # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; + # Select internationalisation properties. # i18n = { # consoleFont = "Lat2-Terminus16"; -- cgit 1.4.1