Change privoxy default config dir Not work

hello
i went change privoxy default config dir .
i try use actionFiles = [ ]; and filterFiles [ ]; in configuration.nix But not work .
also use extraConfig = '' ''; show many errors like this :

Privoxy encountered an error while processing your request:

Could not load template file default or one of its included components.

Please contact your proxy administrator.

If you are the proxy administrator, please put the required file(s)in the (confdir)/templates directory. The location of the (confdir) directory is specified in the main Privoxy config file. (It’s typically the Privoxy install directory, or /etc/privoxy/ ).

and this is my privoxy also tor config in configuration.nix :


#Tor

services.tor = {
enable = true ;
  client = {
             enable = true;
             privoxy.enable = true;
         };
      tsocks.enable = true;

    };


#Privoxy
services.privoxy = {
        enable = true ;
        enableEditActions = true;
        actionsFiles = ["default.action" ];
        filterFiles = ["default.filter"  ];

        extraConfig = ''
            confdir /home/USER/.config/privoxy/

                      ''
;

};

The PrivateHome flag is set so this service cannot read your home directory.

Add systemd.services.privoxy.serviceConfig.PrivateHome = pkgs.lib.mkForce false; to your configuration, or better yet, choose a directory outside of /home.

1 Like