summary refs log tree commit diff
path: root/nixos/modules/installer/tools
diff options
context:
space:
mode:
authorPascal Bach <pasci.bach@gmail.com>2017-08-22 10:32:13 +0200
committerFranz Pletz <fpletz@fnordicwalking.de>2017-08-30 01:25:47 +0200
commit322d0c562cdcc147b998292586e34695c7fe6f30 (patch)
tree1a4e201cc73ad9f2ba90dcfd19819b17e9b136d2 /nixos/modules/installer/tools
parent322af6d80e2c81702c03fcf3a93508b663eafd9f (diff)
downloadnixlib-322d0c562cdcc147b998292586e34695c7fe6f30.tar
nixlib-322d0c562cdcc147b998292586e34695c7fe6f30.tar.gz
nixlib-322d0c562cdcc147b998292586e34695c7fe6f30.tar.bz2
nixlib-322d0c562cdcc147b998292586e34695c7fe6f30.tar.lz
nixlib-322d0c562cdcc147b998292586e34695c7fe6f30.tar.xz
nixlib-322d0c562cdcc147b998292586e34695c7fe6f30.tar.zst
nixlib-322d0c562cdcc147b998292586e34695c7fe6f30.zip
auto-upgrade: add proxy support
Add the proxy variables so that auto upgrade works behind a proxy.
Diffstat (limited to 'nixos/modules/installer/tools')
-rw-r--r--nixos/modules/installer/tools/auto-upgrade.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/installer/tools/auto-upgrade.nix b/nixos/modules/installer/tools/auto-upgrade.nix
index a4d4f16d1d96..7b756b70e2fc 100644
--- a/nixos/modules/installer/tools/auto-upgrade.nix
+++ b/nixos/modules/installer/tools/auto-upgrade.nix
@@ -76,7 +76,7 @@ let cfg = config.system.autoUpgrade; in
       environment = config.nix.envVars //
         { inherit (config.environment.sessionVariables) NIX_PATH;
           HOME = "/root";
-        };
+        } // config.networking.proxy.envVars;
 
       path = [ pkgs.gnutar pkgs.xz.bin config.nix.package.out ];