In a pan put the chopped onion and oil. Let it cook for about 2 minutes and then add the chopped garlic and spices (sweet pepper, turmeric, cumin and chilli flakes).
Add rice and salt. Let the rice cook for about 2 minutes.
Add 2 cups of hot water, cover the pan and cook over low heat for about 10 minutes.