services: matrix bridge config

This commit is contained in:
Kabbone 2022-12-30 10:58:45 +01:00
parent 194a22b8c6
commit 19cc70dadf
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
3 changed files with 8 additions and 2 deletions

View File

@ -100,7 +100,8 @@ in {
serviceConfig = {
User = "mautrix-whatsapp";
Group = "mautrix-whatsapp";
WorkingDirectory = "~";
Environment = "HOME=/var/lib/mautrix-whatsapp";
PrivateTmp = true;
};
};
mautrix-signal = {
@ -112,10 +113,15 @@ in {
serviceConfig = {
User = "mautrix-signal";
Group = "mautrix-signal";
WorkingDirectory = "~";
Environment = "HOME=/var/lib/mautrix-whatsapp";
PrivateTmp = true;
};
};
};
systemd.tmpfiles.rules = [
"d /var/log/mautrix-whatsapp - mautrix-whatsapp mautrix-whatsapp"
"d /var/log/mautrix-signal - mautrix-signal mautrix-signal"
];
users = {
users = {