stop the dynamicuser nonsense

This commit is contained in:
Charlotte 🦝 Delenk 2022-04-30 21:10:45 +01:00
parent e66c0233be
commit 3e94edd840
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 14 additions and 2 deletions

View file

@ -18,7 +18,7 @@
app_service_api.database = {
connection_string = "postgresql:///dendrite_app_service?sslmode=disable&host=/run/postgresql";
config_files = [
"/var/lib/mautrix-telegram"
"/var/lib/mautrix-telegram/telegram-registration.yaml"
];
};
client_api = {
@ -69,7 +69,7 @@
DynamicUser = lib.mkForce false;
};
users.users.dendrite = {
description = "Matrix Media Repository";
description = "Dendrite";
home = "/var/lib/dendrite";
useDefaultShell = true;
group = "dendrite";

View file

@ -60,4 +60,16 @@
"DATABASE mautrix_telegram" = "ALL PRIVILEGES";
};
}];
users.users.mautrix-telegram = {
description = "Mautrix telegram bridge";
home = "/var/lib/mautrix-telegram";
useDefaultShell = true;
group = "dendrite";
isSystemUser = true;
};
systemd.services.mautrix-telegram.serviceConfig = {
User = "mautrix-telegram";
Group = "dendrite";
DynamicUser = lib.mkForce false;
};
}