This technique requires a few different steps. I typically use my style.scss as my 'base' file (as demonstrated in the Compass best practices page in the docs), and that's where I do my sprite config and imports.
Because Sass 3.2 doesn't yet have variable interpolation, you'll have to set up mixins and extendable classes for each type of sprite you're using.
In this example, I have two sprite maps, 'button' and 'logo'.