last akkoma try
This commit is contained in:
parent
8ff6659ebc
commit
6efa1dde3a
1 changed files with 21 additions and 28 deletions
|
@ -2,36 +2,29 @@
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
inherit (config) conf;
|
inherit (config) conf;
|
||||||
in mkIf conf.fedi.enable {
|
in mkIf conf.fedi.enable {
|
||||||
services.postgresql.enable = true;
|
services = {
|
||||||
services.akkoma = {
|
akkoma = {
|
||||||
enable = true;
|
enable = true;
|
||||||
initDb = {
|
user = "akkoma";
|
||||||
enable = false;
|
config = {
|
||||||
password._secret = "/root/db_password";
|
":pleroma" = {
|
||||||
username = "root";
|
":instance" = {
|
||||||
};
|
name = "mira on fedi";
|
||||||
config = {
|
description = "miras fedi instance";
|
||||||
":pleroma" = {
|
email = "mira.cp.0909@gmail.com";
|
||||||
":instance" = {
|
registration_open = true;
|
||||||
name = "mira on fedi";
|
};
|
||||||
email = "akkoma@chpu.eu";
|
|
||||||
description = "miras fedi instance";
|
"Pleroma.Web.Endpoint" = {
|
||||||
registration_opn = false;
|
url.host = "fedi.twoneis.site";
|
||||||
};
|
};
|
||||||
"Pleroma.Upload" = {
|
|
||||||
base_url = "https://media.fedi.twoneis.site/media";
|
|
||||||
};
|
|
||||||
"Pleroma.Repo" = {
|
|
||||||
username = "akkoma";
|
|
||||||
password._secret = "/root/db_password";
|
|
||||||
database = "akkoma";
|
|
||||||
socket_dir = "/run/postgersql";
|
|
||||||
adapter = (pkgs.formats.elixirConf { }).lib.mkRaw "Ecto.Adapters.Postgres";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
nginx = {
|
||||||
nginx = {
|
serverName = "fedi.twoneis.site";
|
||||||
serverName = "fedi.twoneis.site";
|
useACMEHost = "twoneis.site";
|
||||||
|
forceSSL = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue