summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--host/Rory-postgres/configuration.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/Rory-postgres/configuration.nix b/host/Rory-postgres/configuration.nix
index fce3257..6d22cb6 100644
--- a/host/Rory-postgres/configuration.nix
+++ b/host/Rory-postgres/configuration.nix
@@ -37,6 +37,12 @@
     #   GRANT ALL PRIVILEGES ON DATABASE nixcloud TO nixcloud;
     # '';
     dataDir = "/data/pg";
+    extraConfig = ''
+      max_connections = 100
+      shared_buffers = 128MB
+      max_wal_size = 1GB
+      min_wal_size = 80MB
+    '';
   };
 
   system.stateVersion = "22.11"; # DO NOT EDIT!