From a8a5f56661f05836a4209d9dcfe71628ad69a3c0 Mon Sep 17 00:00:00 2001 From: Nicola Zangrandi Date: Wed, 22 Jan 2025 14:54:57 +0100 Subject: [PATCH] Updated nix module to fix postgresql ensureUsers --- nix/module.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nix/module.nix b/nix/module.nix index 6643ca317..27b5d6f4c 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -367,8 +367,9 @@ in ensureDatabases = [ cfg.database.database ]; ensureUsers = [ - { name = cfg.database.user; - ensurePermissions = { "DATABASE ${cfg.database.database}" = "ALL PRIVILEGES"; }; + { + name = cfg.database.user; + ensureDBOwnership = true; } ]; };