mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 04:58:19 -04:00
move signal bot to its own DB
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user