migrate mastodon to local db

reboot
Vivian 2023-12-24 10:52:36 +01:00
parent 627b3a681f
commit 9aaaab412f
2 changed files with 8 additions and 8 deletions

View File

@ -70,6 +70,7 @@ in {
sumneko.lua
davidlday.languagetool-linter
serayuzgur.crates
skellock.just
];
};

View File

@ -31,6 +31,12 @@ in
EOF
'';
services.postgresql = {
enable = true;
package = pkgs.postgresql_16;
# The rest of the database setup is handled by mastodon
};
services.mastodon = {
enable = true;
package = pkgs.v.glitch-soc;
@ -54,14 +60,7 @@ in
inherit (config.services.elasticsearch) port;
};
database = {
createLocally = false;
user = "mastodon";
passwordFile = "${vs.mastodon}/db-password";
port = 5432;
name = "mastodon";
host = "192.168.0.126";
};
database.createLocally = true;
smtp = {
createLocally = false;