anchor.diff:    cfg = config.services.tor;
   
     torify = pkgs.writeTextFile {
  -    name = "torify";
  +    name = "tsocks";
       text = ''
           #!${pkgs.stdenv.shell}
  -        TSOCKS_CONF_FILE=${pkgs.writeText "tsocks.conf" cfg.torify.config} LD_PRELOAD="${pkgs.tsocks}/lib/libtsocks.so $LD_PRELOAD" "$@"
  +        TSOCKS_CONF_FILE=${pkgs.writeText "tsocks.conf" cfg.tsocks.config} LD_PRELOAD="${pkgs.tsocks}/lib/libtsocks.so $LD_PRELOAD" "$@"
       '';
       executable = true;
  -    destination = "/bin/torify";
  +    destination = "/bin/tsocks";
     };
   
   in
  
positive.code:   
    options = {
    
      services.tor.torify = {
  
        enable = mkOption {
          default = cfg.client.enable;
          description = ''
            Whether to build torify scipt to relay application traffic via TOR.
          '';
        };
  
  
negative.code: 
    ###### implementation
  
    config = mkIf cfg.tsocks.enable {
  
      environment.systemPackages = [ torify ];  # expose it to the users
  
      services.tor.tsocks.config = ''
        server = ${toString(head (splitString ":" cfg.tsocks.server))}
        server_port = ${toString(tail (splitString ":" cfg.tsocks.server))}
  
        local = 127.0.0.0/255.128.0.0
        local = 127.128.0.0/255.192.0.0
  