bvm-twitterchiver: add postgresql

This commit is contained in:
Luke Granger-Brown 2021-03-28 22:46:44 +00:00
parent d32585bff6
commit efe1aa51db

View file

@ -19,5 +19,17 @@
};
my.ip.tailscale = "100.119.86.55";
services.postgresql = {
enable = true;
ensureDatabases = [
"twitterchiver"
];
ensureUsers = [{
name = "twitterchiver";
ensurePermissions = { "DATABASE twitterchiver" = "ALL PRIVILEGES"; };
}];
};
services.postgresqlBackup.enable = true;
system.stateVersion = "21.05";
}