Compare commits
2 commits
1d2b2268fe
...
35610c4917
Author | SHA1 | Date | |
---|---|---|---|
35610c4917 | |||
01a11fd9f4 |
2 changed files with 29 additions and 14 deletions
|
@ -5,18 +5,13 @@
|
|||
...
|
||||
}: let
|
||||
settings = {
|
||||
backfill.enabled = true;
|
||||
|
||||
appservice = {
|
||||
as_token = "$CUSTOM_AS_TOKEN";
|
||||
hs_token = "$CUSTOM_HS_TOKEN";
|
||||
};
|
||||
|
||||
backfill = {
|
||||
enabled = true;
|
||||
max_initial_messages = 50;
|
||||
max_catchup_messages = 20;
|
||||
unread_hours_threshold = 300;
|
||||
};
|
||||
|
||||
homeserver = {
|
||||
domain = config.services.grapevine.settings.server_name;
|
||||
address = config.services.grapevine.settings.server_discovery.client.base_url;
|
||||
|
@ -29,7 +24,7 @@
|
|||
require = false;
|
||||
};
|
||||
permissions = {
|
||||
"${config.services.grapevine.settings.server_name}" = "full";
|
||||
"${config.services.grapevine.settings.server_name}" = "user";
|
||||
"@quadradical:${config.services.grapevine.settings.server_name}" = "admin";
|
||||
};
|
||||
};
|
||||
|
@ -37,11 +32,22 @@
|
|||
in {
|
||||
imports = [inputs.nix-matrix-appservices.nixosModule];
|
||||
|
||||
services.matrix-appservices.services.whatsapp = {
|
||||
port = 29318;
|
||||
services.matrix-appservices.services = builtins.mapAttrs (name: value:
|
||||
value
|
||||
// {
|
||||
inherit settings;
|
||||
format = "mautrix-go";
|
||||
}) {
|
||||
whatsapp = {
|
||||
port = 29318;
|
||||
serviceConfig.EnvironmentFile = config.age.secrets."whatsapp.age".path;
|
||||
package = pkgs.mautrix-whatsapp.override {withGoolm = true;};
|
||||
inherit settings;
|
||||
};
|
||||
|
||||
# discord = {
|
||||
# port = 29319;
|
||||
# serviceConfig.EnvironmentFile = config.age.secrets."discord.age".path;
|
||||
# package = pkgs.mautrix-discord;
|
||||
# };
|
||||
};
|
||||
}
|
||||
|
|
9
secrets/discord.age
Normal file
9
secrets/discord.age
Normal file
|
@ -0,0 +1,9 @@
|
|||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IFZLUVVkUSBHSERE
|
||||
emFNL0JMcXV0dWFiVWlPaUc1UEZTTTdkUzk3QjExUDUydDdnTUhVCkZic3cvUDVr
|
||||
L2Qxemt5TkdVeVBDR3BLaDdyY1ZLZFRnWmxTTXM4bVp0UWsKLT4gdHY4Ni1ncmVh
|
||||
c2UgXW52QmhXUCAwVic3OyArUFpLUyQgYl8vZ2cKZWFSN1ZPeWNYdwotLS0gQVJh
|
||||
K0psMkE0K3Jqb09wdjUrb3IwZ2xNWllhNU45Umh6QlgxUGxwR3BHUQof+P4kC3iA
|
||||
lujH7DOZxg4xzIfivzByiTTwJauEdOrx9w7HWttZjhoYLJUCej52EWjNVRxxDyyk
|
||||
EkoiCvVGbE1RdbM=
|
||||
-----END AGE ENCRYPTED FILE-----
|
Loading…
Add table
Add a link
Reference in a new issue