From 402c01e48d3bc67f3654d775bccbfdd213505119 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Wed, 27 Oct 2021 08:27:34 -0400 Subject: [PATCH] profiles/privoxy: add proxy environment variables --- profiles/services/privoxy.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/profiles/services/privoxy.nix b/profiles/services/privoxy.nix index 108cbf3..4c05c28 100644 --- a/profiles/services/privoxy.nix +++ b/profiles/services/privoxy.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: { +{ pkgs, config, ... }: { services = { privoxy = { enable = true; @@ -17,4 +17,9 @@ forwards.dynamic = [ 1337 ]; }; }; + + environment.variables = { + HTTP_PROXY = config.services.privoxy.settings.listen-address; + HTTPS_PROXY = config.services.privoxy.settings.listen-address; + }; }