From 3ef7f8aa492d69613587609c71aa710abafdd837 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Tue, 30 Apr 2024 12:56:07 +0300 Subject: [PATCH] Update postgres auth map --- hosts/cube/postgresql.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hosts/cube/postgresql.nix b/hosts/cube/postgresql.nix index 84802af..fc10c4c 100644 --- a/hosts/cube/postgresql.nix +++ b/hosts/cube/postgresql.nix @@ -26,14 +26,13 @@ in systemConfiguration { initdbArgs = [ "--locale=C" "--encoding=UTF8" ]; authentication = mkOverride 10 '' - # Type Database DBUser Authentication IdentMap - local sameuser all peer map=superuser_map + # Type Database DBUser Authentication IdentMap + local all @wheel,root,postgres trust + local sameuser all peer map=superuser_map ''; identMap = '' # Map System DBUser - superuser_map root ^(.*)$ - superuser_map postgres ^(.*)$ superuser_map /^(.*)$ \1 '';