From fc1ed9a1d9987b50bfc67001f88591d901b6fc95 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Sat, 2 Oct 2021 18:42:17 +0300 Subject: [PATCH] Fix mautrix users --- profiles/servers/matrix-synapse.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/profiles/servers/matrix-synapse.nix b/profiles/servers/matrix-synapse.nix index c8fa98d..22f9bcc 100644 --- a/profiles/servers/matrix-synapse.nix +++ b/profiles/servers/matrix-synapse.nix @@ -44,7 +44,12 @@ mautrix-whatsapp -c ${config.secrets-envsubst.mautrix-whatsapp} ''; }; - users.users.mautrix-whatsapp.isSystemUser = true; + users.users.mautrix-whatsapp = { + group = "mautrix-whatsapp"; + isSystemUser = true; + }; + + users.groups.mautrix-whatsapp = {}; services.mautrix-telegram = { enable = true; @@ -205,7 +210,12 @@ systemd.services.mautrix-telegram.serviceConfig.User = "mautrix-telegram"; - users.users.mautrix-telegram.isSystemUser = true; + users.users.mautrix-telegram = { + group = "mautrix-telegram"; + isSystemUser = true; + }; + + users.groups.mautrix-telegram = {}; users.users.matrix-synapse.name = lib.mkForce "matrix-synapse"; }