migrate mastodon to local db
This commit is contained in:
parent
627b3a681f
commit
9aaaab412f
2 changed files with 8 additions and 8 deletions
|
@ -70,6 +70,7 @@ in {
|
||||||
sumneko.lua
|
sumneko.lua
|
||||||
davidlday.languagetool-linter
|
davidlday.languagetool-linter
|
||||||
serayuzgur.crates
|
serayuzgur.crates
|
||||||
|
skellock.just
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,12 @@ in
|
||||||
EOF
|
EOF
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
services.postgresql = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.postgresql_16;
|
||||||
|
# The rest of the database setup is handled by mastodon
|
||||||
|
};
|
||||||
|
|
||||||
services.mastodon = {
|
services.mastodon = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.v.glitch-soc;
|
package = pkgs.v.glitch-soc;
|
||||||
|
@ -54,14 +60,7 @@ in
|
||||||
inherit (config.services.elasticsearch) port;
|
inherit (config.services.elasticsearch) port;
|
||||||
};
|
};
|
||||||
|
|
||||||
database = {
|
database.createLocally = true;
|
||||||
createLocally = false;
|
|
||||||
user = "mastodon";
|
|
||||||
passwordFile = "${vs.mastodon}/db-password";
|
|
||||||
port = 5432;
|
|
||||||
name = "mastodon";
|
|
||||||
host = "192.168.0.126";
|
|
||||||
};
|
|
||||||
|
|
||||||
smtp = {
|
smtp = {
|
||||||
createLocally = false;
|
createLocally = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue