Make sure lemmy user/db exist

This commit is contained in:
niten 2024-01-25 23:25:17 -08:00
parent f6a96c6572
commit 88b8c4b3c0
1 changed files with 8 additions and 1 deletions

View File

@ -100,7 +100,14 @@ in {
};
services = {
nscd.enable = false;
postgresql.enable = true;
postgresql = {
enable = true;
ensureUsers = [{
name = "lemmy";
ensureDBOwnership = true;
}];
ensureDatabases = [ "lemmy" ];
};
pict-rs.enable = true;
lemmy = {
enable = true;