anchor.diff:                EOF
                 ipfs --local config --json "${concatStringsSep "." path}" "$value"
               '')
  -            cfg.extraConfig)
  +            ({ Addresses.API = cfg.apiAddress;
  +               Addresses.Gateway = cfg.gatewayAddress;
  +               Addresses.Swarm = cfg.swarmAddress;
  +            } //
  +            cfg.extraConfig))
           );
       serviceConfig = {
         ExecStart = "${wrapped}/bin/ipfs daemon ${ipfsFlags}";
  
positive.code:         type = types.str;
          default = "/ip4/127.0.0.1/tcp/5001";
          description = "Where IPFS exposes its API to";
        };
  
        enableGC = mkOption {
  
negative.code:     # NB: migration must be performed prior to pre-start, else we get the failure message!
      preStart = ''
        ipfs repo fsck # workaround for BUG #4212 (https://github.com/ipfs/go-ipfs/issues/4214)
      '' + optionalString cfg.autoMount ''
        ipfs --local config Mounts.FuseAllowOther --json true
        ipfs --local config Mounts.IPFS ${cfg.ipfsMountDir}
  