From e54f9ffcf45529c701c833501a0f6461a1d93e6b Mon Sep 17 00:00:00 2001 From: "Antoine R. Dumont" Date: Sat, 29 Nov 2014 20:53:13 +0100 Subject: [PATCH] Ensure nix-daemon sees the proxy defined options (Not sure about this one) Here are the incomplete and a little contradictory discussions about it (or at least my interpretations of them): - https://github.com/NixOS/nixpkgs/pull/5058#discussion_r20830855 - https://github.com/NixOS/nixpkgs/pull/5058#discussion_r21043552 cc @edolstra @wmertens What did I get wrong? --- nixos/modules/services/misc/nix-daemon.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/nix-daemon.nix b/nixos/modules/services/misc/nix-daemon.nix index f8f99be9b09..d041c5664ef 100644 --- a/nixos/modules/services/misc/nix-daemon.nix +++ b/nixos/modules/services/misc/nix-daemon.nix @@ -281,7 +281,9 @@ in { path = [ nix pkgs.openssl pkgs.utillinux pkgs.openssh ] ++ optionals cfg.distributedBuilds [ pkgs.gzip ]; - environment = cfg.envVars // { CURL_CA_BUNDLE = "/etc/ssl/certs/ca-bundle.crt"; }; + environment = cfg.envVars + // { CURL_CA_BUNDLE = "/etc/ssl/certs/ca-bundle.crt"; } + // config.networking.proxy.envVars; serviceConfig = { Nice = cfg.daemonNiceLevel;