feat(nixos/databases): add alphastory db and user to postgresql

This commit is contained in:
Mohammad Rafiq 2025-06-22 19:08:10 +08:00
parent e0202a9f87
commit b3a5441e8b
No known key found for this signature in database

View file

@ -41,8 +41,13 @@ in
local all all trust
# ipv4
host all all 0.0.0.0/32 trust
host all all 0.0.0.0/0 trust
'';
ensureDatabases = singleton "alphastory";
ensureUsers = singleton {
name = "alphastory";
ensureDBOwnership = true;
};
};
})
(lib.mkIf cfg.mongodb.enable {