Cook the spaghetti in plenty of salted water until al dente.
Melt the butter in the pan, add the finely diced onions and the smoked bacon. Deglaze with the broth and add cream, let it boil down a bit.
Add shrimp and let it get hot.
Add walnut kernels and parsley. Season with salt and pepper. Serve the drained spaghetti with the nut sauce.