diff options
author | Parthiv Seetharaman <pachum99@myrdd.info> | 2022-01-16 21:29:21 -0800 |
---|---|---|
committer | Parthiv Seetharaman <pachum99@myrdd.info> | 2022-01-16 21:44:42 -0800 |
commit | 8c05a809d70aeeb6c6e23d405ba693040ad00730 (patch) | |
tree | 70cc604e5eeb943e15c925f8e0c4d6d1eae8ed7c /profile.nix |
init the module, README, packages, and other stuff
Diffstat (limited to 'profile.nix')
-rw-r--r-- | profile.nix | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/profile.nix b/profile.nix new file mode 100644 index 0000000..4aa1901 --- /dev/null +++ b/profile.nix @@ -0,0 +1,73 @@ +{ config, lib, pkgs, ... }: + +with lib; +let + cfg = config.services.matrix-appservices; + domain = cfg.homeserverDomain; +in +{ + services.signald.enable = true; + + services.matrix-appservices = { + addRegistrationFiles = true; + + services = { + discord = { + port = 29180; + format = "mx-puppet"; + package = pkgs.mx-puppet-discord; + settings.bridge.enableGroupSync = true; + }; + groupme = { + port = 29181; + format = "mx-puppet"; + package = pkgs.mx-puppet-groupme; + }; + slack = { + port = 29182; + format = "mx-puppet"; + package = pkgs.mx-puppet-slack; + }; + + whatsapp = { + port = 29183; + format = "mautrix-go"; + package = pkgs.mautrix-whatsapp; + }; + + signal = { + port = 29184; + format = "mautrix-python"; + package = pkgs.mautrix-signal; + serviceDependencies = [ "signald.service" ]; + serviceConfig = { + StateDirectory = [ "matrix-as-signal" "signald" ]; + JoinNamespaceOf = "signald.service"; + SupplementaryGroups = [ "signald" ]; + }; + settings.signal = { + socket_path = "/run/signald/signald.sock"; + outgoing_attachment_dir = "/var/lib/signald/tmp"; + }; + }; + + facebook = { + port = 29185; + format = "mautrix-python"; + package = pkgs.mautrix-facebook; + }; + + twitter = { + port = 29186; + format = "mautrix-python"; + package = pkgs.mautrix-twitter; + }; + + instagram = { + port = 29187; + format = "mautrix-python"; + package = pkgs.mautrix-instagram; + }; + }; + }; +} |