Good news — Garry's Mod will work with Portal, and you'll get access to all the Half-Life 2 content along with it.
So you don't necessarily need to buy HL2 separately for the full experience; running it through Portal still gives you that familiar HL2 material to play with. It's a convenient way to enjoy Garry's Mod's sandbox fun without extra purchases.