summary refs log tree commit diff
path: root/host/Rory-postgres/configuration.nix
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-12-26 23:22:31 +0100
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-12-26 23:22:31 +0100
commit792b6d8c011613f55cba15b2b6f3ba4c0dfc1fd7 (patch)
tree569c52961061c67559e014f3e8c4b553156e3ad1 /host/Rory-postgres/configuration.nix
parentFix pg perms (diff)
downloadRory-Open-Architecture-792b6d8c011613f55cba15b2b6f3ba4c0dfc1fd7.tar.xz
Add postgres config
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
Diffstat (limited to 'host/Rory-postgres/configuration.nix')
-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!