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:   };
  
    config = mkIf cfg.enable {
      environment.systemPackages = [ pkgs.torsocks (wrapTorsocks "torsocks-faster" cfg.fasterServer) ];
  
      environment.etc =
        [ { source = pkgs.writeText "torsocks.conf" (configFile cfg.server);
            target = "tor/torsocks.conf";
          }
        ];
  