services.postgresql.ensureDatabases
NixOS option
Ensures that the specified databases exist. This option will never delete existing databases, especially not when the value of this option is changed. This means that databases created once through this option or otherwise have to be removed manually.
type: list of stringDefault
[ ]
Example
declared in: nixos/modules/services/databases/postgresql.nixView source on NixOS/nixpkgs →[ "gitea" "nextcloud" ]