How to load entries data in the General Configuration file?
When you take a look at the Docs you'll see


  See craft\helpers\ConfigHelper::localizedValue() for a list of supported value types.


And that contains


  
  $value (mixed) – The config setting value. This can be specified in one of the following forms:
  A scalar value or null: represents the desired value directly, and will be returned verbatim.
  An associative array: represents the desired values across all sites, indexed by site handles. If a matching site handle isn’t listed, the first value will be returned.
  A PHP callable: either an anonymous function or an array representing a class method ([$class or $object, $method]). The callable will be passed the site handle if known, and should return the desired config value.
  $siteHandle (string, null) – The site handle the value should be defined for. Defaults to the current site.
  Returns
  


The interesting thing is a function

'activateAccountSuccessPath' =&gt; function(){
    return Entry::find()-&gt;section('myAccount')..... // do your thing
}