Added: Postgres
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.postgresql_15;
|
package = pkgs.postgresql_15;
|
||||||
port = 5432;
|
port = 5432;
|
||||||
|
enableTCPIP = true;
|
||||||
|
|
||||||
# Initial database setup
|
# Initial database setup
|
||||||
initialScript = pkgs.writeText "backend-init-script" ''
|
initialScript = pkgs.writeText "backend-init-script" ''
|
||||||
@@ -16,6 +17,7 @@
|
|||||||
|
|
||||||
# Raspberry Pi 4 optimized settings (2GB RAM assumed)
|
# Raspberry Pi 4 optimized settings (2GB RAM assumed)
|
||||||
settings = {
|
settings = {
|
||||||
|
|
||||||
# Memory settings (RPi 4 has limited RAM)
|
# Memory settings (RPi 4 has limited RAM)
|
||||||
shared_buffers = "128MB";
|
shared_buffers = "128MB";
|
||||||
effective_cache_size = "512MB";
|
effective_cache_size = "512MB";
|
||||||
|
|||||||
Reference in New Issue
Block a user