I need to create a generic design to fit more than one board I have on the same time to run nios and SOC
Every board has it's own pins plan. The sof file must meet the boards pin plan. If you will create many boards using the same device and same pins you are free to use the same sof. But changing the device or the pins plan will make your sof file useless.