From 20a5fbcf33dfcc3416cb1a882cabf040d3cc4f20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= Date: Tue, 6 Sep 2022 02:43:05 +0000 Subject: mautrix.nix: Fix typo in systemd directive (missing "s" in "JoinsNamespaceOf") --- examples/mautrix.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/mautrix.nix b/examples/mautrix.nix index c5f0b34..e75aba8 100644 --- a/examples/mautrix.nix +++ b/examples/mautrix.nix @@ -27,7 +27,7 @@ package = pkgs.mautrix-signal; serviceConfig = { StateDirectory = [ "matrix-as-signal" "signald" ]; - JoinNamespaceOf = "signald.service"; + JoinsNamespaceOf = "signald.service"; SupplementaryGroups = [ "signald" ]; }; settings.signal = { -- cgit v1.2.3 From ab1725537d7c6c92bd642d5c6fa7f5656e5979ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= Date: Tue, 6 Sep 2022 02:50:59 +0000 Subject: mautrix.nix: JoinsNamespaceOf needs to be in unitConfig, not serviceConfig --- examples/mautrix.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/mautrix.nix b/examples/mautrix.nix index e75aba8..5a37420 100644 --- a/examples/mautrix.nix +++ b/examples/mautrix.nix @@ -5,6 +5,10 @@ services.signald.enable = true; systemd.services.matrix-as-signal.requires = [ "signald.service" ]; systemd.services.matrix-as-signal.after = [ "signald.service" ]; + systemd.services.matrix-as-signal.unitConfig = { + JoinsNamespaceOf = "signald.service"; + }; + services.matrix-appservices = { addRegistrationFiles = true; @@ -27,7 +31,6 @@ package = pkgs.mautrix-signal; serviceConfig = { StateDirectory = [ "matrix-as-signal" "signald" ]; - JoinsNamespaceOf = "signald.service"; SupplementaryGroups = [ "signald" ]; }; settings.signal = { -- cgit v1.2.3 From 3bc5c2e64eff2cbc67ec94a938616d549c42ce52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= Date: Tue, 6 Sep 2022 20:31:49 +0000 Subject: mautrix.nix: Support audio messages by adding ffmpeg --- examples/mautrix.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/mautrix.nix b/examples/mautrix.nix index 5a37420..7705579 100644 --- a/examples/mautrix.nix +++ b/examples/mautrix.nix @@ -3,13 +3,17 @@ { # Mautrix-signal settings services.signald.enable = true; - systemd.services.matrix-as-signal.requires = [ "signald.service" ]; - systemd.services.matrix-as-signal.after = [ "signald.service" ]; - systemd.services.matrix-as-signal.unitConfig = { - JoinsNamespaceOf = "signald.service"; + systemd.services.matrix-as-signal = { + requires = [ "signald.service" ]; + after = [ "signald.service" ]; + unitConfig = { + JoinsNamespaceOf = "signald.service"; + }; + path = [ + pkgs.ffmpeg # voice messages need `ffmpeg` + ]; }; - services.matrix-appservices = { addRegistrationFiles = true; services = { -- cgit v1.2.3