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