My smoke alarm is connected to the mains electricity. No need for new batteries ever. Just a simple extension from the power outlets in the attic and down through the ceiling.
http://artisanelectric.net/blog/the-big-picture/how-old-are-...
http://www.nfpa.org/codes-and-standards/document-information...