git.iko.soy/typeable/nixpkgs
on master help sign in
set all_proxy environment variable
commit565707c57abc6ee9e81d4f6c9bd5fed5bbac2d40 authorSergey Mironov <grrwlf@gmail.com> dateFri 11 Dec 2015, 11:17 (11 years ago) parent7ae05ed
1 file changed+11
nixos/modules/config/networking.nix+11
nixos/modules/config/networking.nix+11
@@ -96,6 +96,15 @@ in
9696 example = "http://127.0.0.1:3128";
9797 };
9898
99+ allProxy = lib.mkOption {
100+ type = types.nullOr types.str;
101+ default = cfg.proxy.default;
102+ description = ''
103+ This option specifies the all_proxy environment variable.
104+ '';
105+ example = "http://127.0.0.1:3128";
106+ };
107+
99108 noProxy = lib.mkOption {
100109 type = types.nullOr types.str;
101110 default = null;
@@ -183,6 +192,8 @@ in
183192 rsync_proxy = cfg.proxy.rsyncProxy;
184193 } // optionalAttrs (cfg.proxy.ftpProxy != null) {
185194 ftp_proxy = cfg.proxy.ftpProxy;
195+ } // optionalAttrs (cfg.proxy.allProxy != null) {
196+ all_proxy = cfg.proxy.allProxy;
186197 } // optionalAttrs (cfg.proxy.noProxy != null) {
187198 no_proxy = cfg.proxy.noProxy;
188199 };