profiles/privoxy: add proxy environment variables

This commit is contained in:
Infinidoge 2021-10-27 08:27:34 -04:00
parent 3f199f8f4d
commit 402c01e48d

View file

@ -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;
};
}