summary refs log tree commit diff
path: root/nixos/modules/services/networking/privoxy.nix
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2021-03-09 16:59:35 +0100
committerrnhmjoj <rnhmjoj@inventati.org>2021-03-09 17:59:12 +0100
commitdf6d7f314227bafec6fce798f4019a48d6634a8e (patch)
tree194c8d1b05259c0069c10b0cb2db4da25014edd7 /nixos/modules/services/networking/privoxy.nix
parentf3c77e5e6145d92fd7f638a3f31cc14ba8408bbe (diff)
downloadnixpkgs-df6d7f314227bafec6fce798f4019a48d6634a8e.tar
nixpkgs-df6d7f314227bafec6fce798f4019a48d6634a8e.tar.gz
nixpkgs-df6d7f314227bafec6fce798f4019a48d6634a8e.tar.bz2
nixpkgs-df6d7f314227bafec6fce798f4019a48d6634a8e.tar.lz
nixpkgs-df6d7f314227bafec6fce798f4019a48d6634a8e.tar.xz
nixpkgs-df6d7f314227bafec6fce798f4019a48d6634a8e.tar.zst
nixpkgs-df6d7f314227bafec6fce798f4019a48d6634a8e.zip
nixos/privoxy: document repeated settings
Diffstat (limited to 'nixos/modules/services/networking/privoxy.nix')
-rw-r--r--nixos/modules/services/networking/privoxy.nix20
1 files changed, 17 insertions, 3 deletions
diff --git a/nixos/modules/services/networking/privoxy.nix b/nixos/modules/services/networking/privoxy.nix
index b8d33916342..f1a9c6029cb 100644
--- a/nixos/modules/services/networking/privoxy.nix
+++ b/nixos/modules/services/networking/privoxy.nix
@@ -165,15 +165,29 @@ in
       };
       default = {};
       example = literalExample ''
-        { listen-address = "[::]:8118";               # listen on IPv6 only
-          forward-socks5 = ".onion localhost:9050 ."; # forward .onion requests to Tor
+        { # Listen on IPv6 only
+          listen-address = "[::]:8118";
+
+          # Forward .onion requests to Tor
+          forward-socks5 = ".onion localhost:9050 .";
+
+          # Log redirects and filters
+          debug = [ 128 64 ];
+          # This is equivalent to writing these lines
+          # in the Privoxy configuration file:
+          # debug 128
+          # debug 64
         }
       '';
       description = ''
         This option is mapped to the main Privoxy configuration file.
         Check out the Privoxy user manual at
-        <link xlink:href="file://${pkgs.privoxy}/share/doc/privoxy/user-manual/config.html"/>
+        <link xlink:href="https://www.privoxy.org/user-manual/config.html"/>
         for available settings and documentation.
+
+        <note><para>
+          Repeated settings can be represented by using a list.
+        </para></note>
       '';
     };