From 680087f30d5699664b3a3028a24e4075937d648d Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 28 Jul 2023 16:42:24 -0500 Subject: [PATCH] postgres --- os/linux/nix/machines/beefcake.nix | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/os/linux/nix/machines/beefcake.nix b/os/linux/nix/machines/beefcake.nix index a090c06..d59dcde 100644 --- a/os/linux/nix/machines/beefcake.nix +++ b/os/linux/nix/machines/beefcake.nix @@ -341,7 +341,7 @@ services.postgresql = { enable = true; - ensureDatabases = [ "daniel" "plausible" ]; + ensureDatabases = [ "daniel" ]; ensureUsers = [ { name = "daniel"; @@ -349,12 +349,6 @@ "DATABASE daniel" = "ALL PRIVILEGES"; }; } - { - name = "plausible"; - ensurePermissions = { - "DATABASE plausible" = "ALL PRIVILEGES"; - }; - } ]; dataDir = "/storage/postgres"; enableTCPIP = true; @@ -364,6 +358,7 @@ authentication = pkgs.lib.mkOverride 10 '' #type database DBuser auth-method local all postgres peer map=superuser_map + local all daniel peer map=superuser_map local sameuser all peer map=superuser_map local plausible plausible peer map=superuser_map @@ -376,9 +371,9 @@ identMap = '' # ArbitraryMapName systemUser DBUser - superuser_map root postgres - superuser_map postgres postgres - superuser_map daniel postgres + superuser_map root postgres + superuser_map postgres postgres + superuser_map daniel postgres # Let other names login as themselves superuser_map /^(.*)$ \1 '';