bvm-twitterchiver: add postgresql
This commit is contained in:
parent
d32585bff6
commit
efe1aa51db
1 changed files with 12 additions and 0 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue