From d71e94b0bcf26ff879b4cff3c507123e6444ca05 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Mon, 6 Nov 2023 19:43:00 -0800 Subject: [PATCH] allow local peer connections to postgresql --- modules/postgresql.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/postgresql.nix b/modules/postgresql.nix index f170c43..d6707ba 100644 --- a/modules/postgresql.nix +++ b/modules/postgresql.nix @@ -42,10 +42,11 @@ in services.postgresql.port = port; services.postgresql.authentication = lib.mkOverride 10 '' #type database DBuser origin-address auth-method + local all all peer # ipv4 - host all all 127.0.0.1/32 trust + host all all 127.0.0.1/32 trust # ipv6 - host all all ::1/128 trust + host all all ::1/128 trust ''; };