From 08a4b3d96f60fbd0f210c0447a15180cb80dc140 Mon Sep 17 00:00:00 2001 From: Kabbone Date: Sat, 10 Dec 2022 17:23:41 +0100 Subject: [PATCH] services: initial matrix --- modules/services/server/matrix.nix | 51 ++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 modules/services/server/matrix.nix diff --git a/modules/services/server/matrix.nix b/modules/services/server/matrix.nix new file mode 100644 index 0000000..e69e501 --- /dev/null +++ b/modules/services/server/matrix.nix @@ -0,0 +1,51 @@ +# +# System notifications +# + +{ config, lib, pkgs, ... }: + +{ + services.matrix-synapse = { + enable = true; + settings = { + server_name = "kabtop.de"; + public_baseurl = "https://kabtop.de:8448"; + turn_uris = [ + "turn:srtsa" + ]; + turn_shared_secret = "psycopg2"; + database.args.user = "synapse"; + database.args.database = "synapsedb"; + admin_contact: "mailto:admin@kabtop.de"; + retention: + enabled: true + default_policy: + min_lifetime: 1d + max_lifetime: 1y + federation_client_minimum_tls_version: 1.2 + password_config: + policy: + enabled: true + minimum_length: 8 + require_digit: true + require_lowercase: true + require_uppercase: true + email: + smtp_host: in-v3.mailjet.com + smtp_port: 587 + smtp_user: "secret123" + smtp_pass: "secret123" + require_transport_security: true + enable_tls: true + notif_from: "%(app)s homeserver " + app_name: "Kabtop Matrix" + enable_notifs: true + push: + include_content: false + database: + args: + password: "secret123" + host: localhost + }; + +}