From a8b24762885a9cab6feb4e34b3a0af5091472c85 Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Sat, 2 Aug 2025 03:43:31 +0200 Subject: [PATCH] add some comment --- shared/db/postgres.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shared/db/postgres.nix b/shared/db/postgres.nix index 87dd8fc..66847c4 100644 --- a/shared/db/postgres.nix +++ b/shared/db/postgres.nix @@ -30,6 +30,7 @@ in }; systemd.services.postgresql.environment = lib.mkIf (builtins.elem myName mapping.db.slaves) { + # Currently unused cause pwd is mannually set during basebackup PGPASSFILE = "${config.age.secrets.repli.path}"; }; services.postgresql = { @@ -73,6 +74,7 @@ in wal_level = "logical"; wal_receiver_timeout = "60s"; max_wal_senders = 16; + # Should be override by postgreqql.auto.conf generated by pg_basebackup primary_conninfo = "host=${masterIP} port=5432 user=replication"; hot_standby = "on"; };