lol

matrix-synapse: default to postgresql on 18.03

+17 -1
+14
nixos/doc/manual/release-notes/rl-1803.xml
··· 182 182 <literal>lib.mkOverride</literal> can be used. 183 183 </para> 184 184 </listitem> 185 + <listitem> 186 + <para> 187 + The following changes apply if the <literal>stateVersion</literal> is changed to 18.03 or higher. 188 + For <literal>stateVersion = "17.09"</literal> or lower the old behavior is preserved. 189 + </para> 190 + <itemizedlist> 191 + <listitem> 192 + <para> 193 + <literal>matrix-synapse</literal> uses postgresql by default instead of sqlite. 194 + Migration instructions can be found <link xlink:href="https://github.com/matrix-org/synapse/blob/master/docs/postgres.rst#porting-from-sqlite"> here </link>. 195 + </para> 196 + </listitem> 197 + </itemizedlist> 198 + </listitem> 185 199 </itemizedlist> 186 200 187 201 </section>
+3 -1
nixos/modules/services/misc/matrix-synapse.nix
··· 341 341 }; 342 342 database_type = mkOption { 343 343 type = types.enum [ "sqlite3" "psycopg2" ]; 344 - default = "sqlite3"; 344 + default = if versionAtLeast config.system.stateVersion "18.03" 345 + then "psycopg2" 346 + else "sqlite3"; 345 347 description = '' 346 348 The database engine name. Can be sqlite or psycopg2. 347 349 '';