Cook pasta according to the package and set aside.
In a large pan, cook the bacon until crispy, take out the bacon strips (keep the grease) and add the onions to the pan. Saute until transparent.
Add the tomatoes, garlic, salt and pepper flakes to the pan. Chop the bacon and add it to the pan as well. Cook until tomatoes are soft, about 5-7 minutes.
Add pasta, pine nuts, and basil. Stir everything very well and cook for about 5 more minutes.