How to create programmatically menu links with just created nodes during installation profile in aegir ?can't get nid!
You can add a menu item using this

$item = array(
        'menu_name' =&gt; 'menu-name',
        'link_title' =&gt; 'Link title',
        'link_path' =&gt; 'node/'. $nid,
      );
menu_link_save($item);
//don't forget to clear menu cache after saving menu item
menu_cache_clear_all();


Hope this will help

Updated Answer
As I looked into Drupal 7 standard profile installation file, that is standard.install (Line no 413), you can see "Home" link creation there.

// Create a Home link in the main menu.
  $item = array(
    'link_title' =&gt; st('Home'),
    'link_path' =&gt; '&lt;front&gt;',
    'menu_name' =&gt; 'main-menu',
  );
  menu_link_save($item);

  // Update the menu router information.
  menu_rebuild();