Form submission handler for system_site_information_settings().
node_form_system_site_information_settings_form_alter()
function node_form_system_site_information_settings_form_submit($form, &$form_state) {
config('node.settings')
->set('items_per_page', $form_state['values']['default_nodes_main'])
->save();
}