From 8466383f3470b6d68f473af4681c970e5f4b1d9d Mon Sep 17 00:00:00 2001
From: DerGrumpf
Date: Tue, 17 Feb 2026 22:51:46 +0100
Subject: [PATCH] Added: Postgres pg_hba.conf
---
hosts/cyper-pi-1/postgres.nix | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/hosts/cyper-pi-1/postgres.nix b/hosts/cyper-pi-1/postgres.nix
index d4b52f0..eddff04 100644
--- a/hosts/cyper-pi-1/postgres.nix
+++ b/hosts/cyper-pi-1/postgres.nix
@@ -7,7 +7,6 @@
services.postgresql = {
enable = true;
package = pkgs.postgresql_15;
- port = 5432;
enableTCPIP = true;
# Initial database setup
@@ -17,6 +16,8 @@
# Raspberry Pi 4 optimized settings (2GB RAM assumed)
settings = {
+ # Should match firewall
+ port = 5432;
# Memory settings (RPi 4 has limited RAM)
shared_buffers = "128MB";
@@ -50,6 +51,13 @@
cpu_index_tuple_cost = 0.1;
cpu_operator_cost = 0.05;
};
+
+ authentication = ''
+ local all all trust
+ host all all 127.0.0.1/32 md5
+ host all all ::1/128 md5
+ host all all 192.168.2.0/24 md5
+ '';
};
# Enable the PostgreSQL service to start on boot