From 3e94edd840fab9e1f4b71695d9ca68ab864a8b36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sat, 30 Apr 2022 21:10:45 +0100 Subject: [PATCH] stop the dynamicuser nonsense --- config/services/dendrite.nix | 4 ++-- config/services/mautrix-telegram.nix | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/config/services/dendrite.nix b/config/services/dendrite.nix index c9267c33..547d2983 100644 --- a/config/services/dendrite.nix +++ b/config/services/dendrite.nix @@ -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"; diff --git a/config/services/mautrix-telegram.nix b/config/services/mautrix-telegram.nix index a48d262e..b14f07d5 100644 --- a/config/services/mautrix-telegram.nix +++ b/config/services/mautrix-telegram.nix @@ -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; + }; }