diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-06-18 02:24:05 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-06-18 02:24:05 +0200 |
commit | 6297a763e960fd35c3f3351f21f35a69cffe0a20 (patch) | |
tree | 84198ffd9fc23a51bfca9db40827eb0d0c25fb6f | |
parent | Add CORS to git (diff) | |
download | Rory-Open-Architecture-6297a763e960fd35c3f3351f21f35a69cffe0a20.tar.xz |
Move postgres to nginx
-rwxr-xr-x | flake.nix | 1 | ||||
-rwxr-xr-x | host/Rory-postgres/software.nix | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix index 0441a80..17fc916 100755 --- a/flake.nix +++ b/flake.nix @@ -23,6 +23,7 @@ ./hardware-configuration.nix ./host/Rory-discordbots/software.nix ./host/Rory-synapse/software.nix + ./host/Rory-postgres/software.nix home-manager.nixosModules.home-manager ]; specialArgs = { diff --git a/host/Rory-postgres/software.nix b/host/Rory-postgres/software.nix index e16fac2..7b75435 100755 --- a/host/Rory-postgres/software.nix +++ b/host/Rory-postgres/software.nix @@ -6,7 +6,7 @@ ../../modules/base-server.nix ]; - systemd.tmpfiles.rules = [ "d /data/pg 0750 postgres postgres" ]; + systemd.tmpfiles.rules = [ "d /mnt/postgres/data 0750 postgres postgres" ]; services.postgresql = { enable = true; @@ -26,7 +26,7 @@ # CREATE DATABASE nixcloud; # GRANT ALL PRIVILEGES ON DATABASE nixcloud TO nixcloud; # ''; - dataDir = "/data/pg"; + dataDir = "/mnt/postgres/data"; settings = { "max_connections" = "100"; "shared_buffers" = "128MB"; |