I'm not hot for systemd but this https://www.freedesktop.org/software/systemd/man/systemd.tim... looks robust, far from ad-hoc hack.
Proper design reduces complexity. The above adds a lot of complexity, and thus it's a hack. Not the appearance.
Otherwise with your standard of hack anything beyond hello world and baby's first input are hacks because everything else requires boilerplate.