aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/private/databases/mariadb.nix4
-rw-r--r--modules/private/databases/postgresql.nix3
2 files changed, 7 insertions, 0 deletions
diff --git a/modules/private/databases/mariadb.nix b/modules/private/databases/mariadb.nix
index 632306c..3359064 100644
--- a/modules/private/databases/mariadb.nix
+++ b/modules/private/databases/mariadb.nix
@@ -102,6 +102,10 @@ in {
102 # for replication 102 # for replication
103 log-bin=mariadb-bin 103 log-bin=mariadb-bin
104 server-id=1 104 server-id=1
105
106 # this introduces a small delay before storing on disk, but
107 # makes it order of magnitudes quicker
108 innodb_flush_log_at_trx_commit = 0
105 ''; 109 '';
106 }; 110 };
107 111
diff --git a/modules/private/databases/postgresql.nix b/modules/private/databases/postgresql.nix
index 1932a82..3dcd311 100644
--- a/modules/private/databases/postgresql.nix
+++ b/modules/private/databases/postgresql.nix
@@ -161,6 +161,9 @@ in {
161 lc_numeric = 'en_US.UTF-8' 161 lc_numeric = 'en_US.UTF-8'
162 lc_time = 'en_US.UTF-8' 162 lc_time = 'en_US.UTF-8'
163 default_text_search_config = 'pg_catalog.english' 163 default_text_search_config = 'pg_catalog.english'
164 # this introduces a small delay before storing on disk, but
165 # makes it order of magnitudes quicker
166 synchronous_commit = off
164 ssl = on 167 ssl = on
165 ssl_cert_file = '${config.security.acme.directory}/postgresql/fullchain.pem' 168 ssl_cert_file = '${config.security.acme.directory}/postgresql/fullchain.pem'
166 ssl_key_file = '${config.security.acme.directory}/postgresql/key.pem' 169 ssl_key_file = '${config.security.acme.directory}/postgresql/key.pem'