From da34aaa065685e86db7c333c5fc414f4cb7c390e Mon Sep 17 00:00:00 2001 From: RGBCube Date: Thu, 27 Feb 2025 22:07:32 +0300 Subject: [PATCH] chore: remove redundant permission grants to root as root is pg superuser --- hosts/cube/postgresql.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hosts/cube/postgresql.nix b/hosts/cube/postgresql.nix index 9007280..529628f 100644 --- a/hosts/cube/postgresql.nix +++ b/hosts/cube/postgresql.nix @@ -31,11 +31,7 @@ in { enableJIT = true; - initdbArgs = [ "--locale=C" "--encoding=UTF8" ]; - initialScript = pkgs.writeText "grant-root-perms.sql" '' - GRANT pg_read_all_data TO root; - GRANT pg_write_all_data TO root; - ''; + initdbArgs = [ "--locale=C" "--encoding=UTF8" ]; authentication = mkOverride 10 /* ini */ '' # Type Database DBUser Authentication