Can HD from 2011 mini work as is in 2012 mini?
Your 2012 Mac mini should be able to boot and run off the SSD from the 2011.  Technically speaking, this is basically what Target Disk Mode is - using a different drive to boot your Mac.

There's no "tuning" of the OS nor are there any different "installation modes."