anchor.diff:    cfg = config.services.tor.torsocks;
     optionalNullStr = b: v: optionalString (b != null) v;
   
  -  configFile = ''
  -    TorAddress ${toString (head (splitString ":" cfg.server))}
  -    TorPort    ${toString (tail (splitString ":" cfg.server))}
  +  configFile = server: ''
  +    TorAddress ${toString (head (splitString ":" server))}
  +    TorPort    ${toString (tail (splitString ":" server))}
   
       OnionAddrRange ${cfg.onionAddrRange}
   
  
positive.code:         description = ''
            IP/Port of the Tor SOCKS server. Currently, hostnames are
            NOT supported by torsocks.
          '';
        };
  
  
negative.code: 
      AllowInbound ${if cfg.allowInbound then "1" else "0"}
    '';
  
    wrapTorsocks = name: server: pkgs.writeTextFile {
      name = name;
      text = ''
          #!${pkgs.stdenv.shell}
          TORSOCKS_CONF_FILE=${pkgs.writeText "torsocks.conf" (configFile server)} ${pkgs.torsocks}/bin/torsocks "$@"
      '';
      executable = true;
      destination = "/bin/${name}";
    };
  
  in
  {
    options = {
  