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 '';