From 43e7ecc0602ecf197f73a591597e8d10cecd38a3 Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Sat, 2 Aug 2025 01:47:03 +0200 Subject: [PATCH] fix pg_hba template --- shared/db/postgres.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shared/db/postgres.nix b/shared/db/postgres.nix index b89f25f..7722839 100644 --- a/shared/db/postgres.nix +++ b/shared/db/postgres.nix @@ -34,7 +34,7 @@ in superuser_map root postgres superuser_map postgres postgres ''; - authentication = lib.mkOverride 10 (builtins.concatStringsSep "\n " (['' + authentication = lib.mkForce (builtins.concatStringsSep "\n" (['' #type database DBuser auth-method optional_ident_map local all all peer map=superuser_map ''] @@ -42,9 +42,9 @@ in (map (slaveName: let slaveNode = nodes.${slaveName}; in "host replication replication 172.19.${toString slaveNode.zone}.${toString slaveNode.id}/32 md5" ) mapping.db.slaves) - ++ lib.optionals (builtins.elem myName mapping.db.slaves) ['' - host replication replication ${masterIP}/32 md5 - ''])); + ++ lib.optionals (builtins.elem myName mapping.db.slaves) [ + "host replication replication ${masterIP}/32 md5" + ])); ensureUsers = [{ name = "replication"; ensureClauses.replication = true;