(cherry picked from commit f3f7c5cc57)
f3f7c5cc57
Unfortunately this duplicates some code from NixOS but it does allow much more flexibility and, hopefully, stability in the Home Manager documentation. Fixes #254.