2
0
Fork 0

Updated nix module to fix postgresql ensureUsers

This commit is contained in:
Nicola Zangrandi 2025-01-22 14:54:57 +01:00
parent 2579b4b8fc
commit a8a5f56661
Signed by: wasp
GPG key ID: 43C1470D890F23ED

View file

@ -367,8 +367,9 @@ in
ensureDatabases = [ cfg.database.database ]; ensureDatabases = [ cfg.database.database ];
ensureUsers = [ ensureUsers = [
{ name = cfg.database.user; {
ensurePermissions = { "DATABASE ${cfg.database.database}" = "ALL PRIVILEGES"; }; name = cfg.database.user;
ensureDBOwnership = true;
} }
]; ];
}; };