From 322d0c562cdcc147b998292586e34695c7fe6f30 Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Tue, 22 Aug 2017 10:32:13 +0200 Subject: [PATCH] auto-upgrade: add proxy support Add the proxy variables so that auto upgrade works behind a proxy. --- nixos/modules/installer/tools/auto-upgrade.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ];