Hey Perk,
Per my brief comment about the mac mini as a HTPC, and mentioning digital out on the headphone jack...
yea, its apparently got Optical toslink built into it... lol. thats easy.
http://support.apple.com/kb/HT3153Headphone out / optical audio out port
The headphone / line output jack accommodates digital optical audio output, analog audio output with a 24-bit, 44.1-192 kHz D/A converter, digital audio output up to 24-bit stereo and 44.1-192 kHz sampling rate and supporting encoded digital audio output (AC3 and DTS). For analog headphone / line output a standard audio cable with 3.5mm metal plug should be used. For digital audio, a standard toslink cable with a toslink mini-plug adapter can be used.
incidentally, the input socket is also toslink.
So you just need this thing:
http://4sp.in/2oRa mini to normal toslink adapter.
So, yeay me!