diff options
author | Sergey Mironov <grrwlf@gmail.com> | 2015-12-11 11:17:06 +0300 |
---|---|---|
committer | Sergey Mironov <grrwlf@gmail.com> | 2015-12-11 11:20:00 +0300 |
commit | 565707c57abc6ee9e81d4f6c9bd5fed5bbac2d40 (patch) | |
tree | fadc11c9a20856f33885254a7b899c44f48b9b75 /nixos/modules/config/networking.nix | |
parent | 7ae05edcdd14f6ace83ead9bf0d114e97c89a83a (diff) | |
download | nixlib-565707c57abc6ee9e81d4f6c9bd5fed5bbac2d40.tar nixlib-565707c57abc6ee9e81d4f6c9bd5fed5bbac2d40.tar.gz nixlib-565707c57abc6ee9e81d4f6c9bd5fed5bbac2d40.tar.bz2 nixlib-565707c57abc6ee9e81d4f6c9bd5fed5bbac2d40.tar.lz nixlib-565707c57abc6ee9e81d4f6c9bd5fed5bbac2d40.tar.xz nixlib-565707c57abc6ee9e81d4f6c9bd5fed5bbac2d40.tar.zst nixlib-565707c57abc6ee9e81d4f6c9bd5fed5bbac2d40.zip |
set all_proxy environment variable
Diffstat (limited to 'nixos/modules/config/networking.nix')
-rw-r--r-- | nixos/modules/config/networking.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/modules/config/networking.nix b/nixos/modules/config/networking.nix index b49f8a156d1d..293a42d38b5a 100644 --- a/nixos/modules/config/networking.nix +++ b/nixos/modules/config/networking.nix @@ -96,6 +96,15 @@ in example = "http://127.0.0.1:3128"; }; + allProxy = lib.mkOption { + type = types.nullOr types.str; + default = cfg.proxy.default; + description = '' + This option specifies the all_proxy environment variable. + ''; + example = "http://127.0.0.1:3128"; + }; + noProxy = lib.mkOption { type = types.nullOr types.str; default = null; @@ -183,6 +192,8 @@ in rsync_proxy = cfg.proxy.rsyncProxy; } // optionalAttrs (cfg.proxy.ftpProxy != null) { ftp_proxy = cfg.proxy.ftpProxy; + } // optionalAttrs (cfg.proxy.allProxy != null) { + all_proxy = cfg.proxy.allProxy; } // optionalAttrs (cfg.proxy.noProxy != null) { no_proxy = cfg.proxy.noProxy; }; |