From 4c7ba8e68ebdf1b34a50405d43be92dedac09559 Mon Sep 17 00:00:00 2001 From: Dennis <52411861+DerDennisOP@users.noreply.github.com> Date: Fri, 2 Feb 2024 04:25:10 +0100 Subject: [PATCH] changes to pg (#52) --- systems/palatine-hill/configuration.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/systems/palatine-hill/configuration.nix b/systems/palatine-hill/configuration.nix index 4f98219..abe9bf8 100644 --- a/systems/palatine-hill/configuration.nix +++ b/systems/palatine-hill/configuration.nix @@ -69,18 +69,18 @@ postgresql = { enable = true; enableJIT = true; + identMap = '' + # ArbitraryMapName systemUser DBUser + superuser_map root postgres + superuser_map alice postgres + # Let other names login as themselves + superuser_map /^(.*)$ \1 + ''; + upgrade = { enable = true; stopServices = [ "hydra" ]; }; - - ensureUsers = map - (user: { - name = user; - ensureDBOwnership = true; - }) [ "hydra" ]; - - ensureDatabases = [ "hydra" ]; }; hydra = {