The Buffalo WHR-G54S is a better deal than the WRT54GL. Both has the same Broadcom 5352@200MHz processor, 4MB flash, 16MB ram, but the Buffalo comes with a 4dBi antenna so it has much better range than the WRT54GL which has the average 2dBi antenna. Also, the Buffalo sells for $40 shipped at Newegg - no rebate hassle.
If you have a big house/office, you may want to consider spending another $12 to get the Buffalo WHR-HP-G54 at buy.com for $62 - $10 GCO = $52 AC. This router comes with a built-in amplifier so you get both better range and transmission.
Besides dd-wrt, you may want to consider the new Tomato firmware also. I've heard a lot of good things about it. From the Tomato website,
"Tomato is a small, lean and simple replacement firmware for Linksys' WRT54G/GL/GS and Buffalo WHR-G54S/WHR-HP-G54 routers. It features a new easy to use GUI, a new bandwidth usage monitor, more advanced QOS and access restrictions, enables new wireless features such as WDS and wireless client modes, raises the limits on maximum connections for P2P, allows you to run your custom scripts or telnet/ssh in and do all sorts of things like re-program the SES/AOSS button, adds wireless site survey to see your wifi neighbors, and more."
http://www.polarcloud.com/tomato
As for a gigabit router that works with open source firmware, you can get the Linksys WRT350N which has gigabit ethernet and also pre-N wireless. In fact, I'm using one right now with dd-wrt v24 beta. It runs pretty well, very stable, except the storage link doesn't work yet, but they're working on it. If you cannot wait for the storage link to work, you can pay $20/year to get the Sveasoft firmware which has the storage link working already. This router also comes with a much faster processor (BCM4705) than the WRT54G/S/L so if you do CPU intensive tasks like VPN, this would be a good choice.