How to start postgres on boot?

Run the command `scm cron start-DATABASE-NAME ‘@reboot’ ‘scm start ~/var/pg/DATABASE-DIRECTORY’ from the nix-shell. This installs a cron task to start the database after the server starts and works on any linux distribution.