[Nix-dev] Patch for privoxy

roconnor at theorem.ca roconnor at theorem.ca
Sun May 2 00:07:07 CEST 2010


Here is a patch that you can apply to make the privoxy service actually 
run as the privoxy user:

Index: modules/services/networking/privoxy.nix
===================================================================
--- modules/services/networking/privoxy.nix     (revision 21548)
+++ modules/services/networking/privoxy.nix     (working copy)
@@ -12,7 +12,7 @@

    modprobe = config.system.sbin.modprobe;

-  privoxyFlags = "--no-daemon ${privoxyCfg}";
+  privoxyFlags = "--no-daemon --user ${privoxyUser} ${privoxyCfg}";

    privoxyCfg = pkgs.writeText "privoxy.conf" ''
      listen-address  ${config.services.privoxy.listenAddress}

-- 
Russell O'Connor                                      <http://r6.ca/>
``All talk about `theft,''' the general counsel of the American Graphophone
Company wrote, ``is the merest claptrap, for there exists no property in
ideas musical, literary or artistic, except as defined by statute.''



More information about the nix-dev mailing list