diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-12-26 23:24:18 +0100 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-12-26 23:24:18 +0100 |
commit | 32bcaeff294b8cdc99f6731f9d8c09e4ecef6cf7 (patch) | |
tree | 1680a5ed76e220d4544b1a04f1c1e7928da6b14b | |
parent | Add postgres config (diff) | |
download | Rory-Open-Architecture-32bcaeff294b8cdc99f6731f9d8c09e4ecef6cf7.tar.xz |
Use postgres settings instead of extraConfig
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
-rw-r--r-- | host/Rory-postgres/configuration.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/host/Rory-postgres/configuration.nix b/host/Rory-postgres/configuration.nix index 6d22cb6..4f191b2 100644 --- a/host/Rory-postgres/configuration.nix +++ b/host/Rory-postgres/configuration.nix @@ -37,12 +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 - ''; + settings = { + "max_connections" = "100"; + "shared_buffers" = "128MB"; + "max_wal_size" = "1GB"; + "min_wal_size" = "80MB"; + }; }; system.stateVersion = "22.11"; # DO NOT EDIT! |