move signal bot to its own DB

This commit is contained in:
2026-03-18 08:35:45 -04:00
parent 2661127426
commit 976c3f9d3e
15 changed files with 402 additions and 52 deletions

View File

@@ -31,7 +31,7 @@ in
local gitea gitea trust
# signalbot
local richie signalbot trust
local signalbot signalbot trust
# math
local postgres math trust
@@ -103,6 +103,7 @@ in
}
{
name = "signalbot";
ensureDBOwnership = true;
ensureClauses = {
login = true;
};
@@ -114,6 +115,7 @@ in
"math"
"n8n"
"richie"
"signalbot"
];
# Thank you NotAShelf
# https://github.com/NotAShelf/nyx/blob/d407b4d6e5ab7f60350af61a3d73a62a5e9ac660/modules/core/roles/server/system/services/databases/postgresql.nix#L74

View File

@@ -26,7 +26,7 @@ in
environment = {
PYTHONPATH = "${inputs.self}";
SIGNALBOT_DB = "richie";
SIGNALBOT_DB = "signalbot";
SIGNALBOT_USER = "signalbot";
SIGNALBOT_HOST = "/run/postgresql";
SIGNALBOT_PORT = "5432";
@@ -34,6 +34,7 @@ in
serviceConfig = {
Type = "simple";
WorkingDirectory = "${inputs.self}";
User = "signalbot";
Group = "signalbot";
EnvironmentFile = "${vars.secrets}/services/signal-bot";