Fill the kettle with water and boil it in a pot. Season with salt and pepper and bring to a boil.
Add pasta and cook for 8-9 minutes.
Place a saucepan on medium-high heat, add olive oil, garlic, and rosemary, and cook for 30 seconds.
Add cannellini beans, season with salt and pepper, and cook for 2 minutes.
Pour white wine into the pan and let it reduce by half.
Mash most of the beans, add kale, and bring to a boil.
Drain pasta, save some pasta water, and add both to the pan. Mix well.
Grate Parmesan cheese and serve the pasta in bowls.
For the salami topping, fry salami in a pan for 1 minute.
Add garlic, walnuts, and olive oil and cook for 2 minutes.
Stir in nduja and cook until liquid reduces, then remove from heat.
