+ postgresqlBinary = if config.myServices.databasesReplication.postgresql.enable
+ then config.myServices.databasesReplication.postgresql.mainPackage
+ else if config.myServices.databases.enable
+ then config.myServices.databases.postgresql.package
+ else pkgs.postgresql;