matrix-synapse: default to postgresql on 18.03

This commit is contained in:
David McFarland
2018-02-04 21:22:55 -04:00
parent 1472fa8685
commit a4b7de74a5
2 changed files with 17 additions and 1 deletions
@@ -341,7 +341,9 @@ in {
};
database_type = mkOption {
type = types.enum [ "sqlite3" "psycopg2" ];
default = "sqlite3";
default = if versionAtLeast config.system.stateVersion "18.03"
then "psycopg2"
else "sqlite3";
description = ''
The database engine name. Can be sqlite or psycopg2.
'';