How to configure PostgreSQL declaratively (NixOS and non-NixOS)?

The last time I had locale issues, the only thing that worked was a dirty workaround (and, in the end, to switch to another distro from Ubuntu).

This is my question, tried to document everything that I tried, hope it helps:

1 Like