When generating the key inside the module rather than specifying a
hard-coded one, you'd get an error like this otherwise
Jul 15 16:02:53 nixos systemd[1]: Starting Docs from SuiteNumérique...
[...]
Jul 15 16:02:54 nixos lasuite-docs-pre-start[19466]: ValueError: Couldn't setup configuration 'impress.settings.Production': Path '/var/lib/lasuite-docs/django_secret_key' does not exist.
This avoids restarting the postgresql server, when only ensureDatabases
or ensureUsers have been changed. It will also allow to properly wait
for recovery to finish later.
To wait for "postgresql is ready" in other services, we now provide a
postgresql.target.
Resolves#400018
Co-authored-by: Marcel <me@m4rc3l.de>