summaryrefslogtreecommitdiff
path: root/deployment/services
diff options
context:
space:
mode:
authorMarek Paśnikowski <marek@marekpasnikowski.pl>2026-04-09 20:49:16 +0200
committerMarek Paśnikowski <marek@marekpasnikowski.pl>2026-04-09 20:50:59 +0200
commiteb5755715cccbc6b2d5af892f3c96f7b3be06ac3 (patch)
tree71caea117f4b56c9b885ef603b7d0c8a9937e98d /deployment/services
parent809bde0ddfe44b9839e8000d206816c966bcc33d (diff)
(services matrix): prepare configuration of matrix-service-rakan for customization
Diffstat (limited to 'deployment/services')
-rw-r--r--deployment/services/matrix.scm56
1 files changed, 52 insertions, 4 deletions
diff --git a/deployment/services/matrix.scm b/deployment/services/matrix.scm
index 8612793..c418f31 100644
--- a/deployment/services/matrix.scm
+++ b/deployment/services/matrix.scm
@@ -1,12 +1,60 @@
(define-module (deployment services matrix)
#:use-module (gnu services)
- #:use-module ((sovereign services matrix)
- #:prefix sovereign:services:matrix:)
+ #:use-module (guix gexp)
+ #:use-module (sovereign services matrix)
+ #:use-module ((gnu packages matrix)
+ #:prefix gnu:packages:matrix:)
#:export (matrix-service-aisaka
matrix-service-rakan))
(define matrix-service-aisaka
- (service sovereign:services:matrix:matrix-service-type))
+ (service matrix-service-type))
+
+(define homeserver-configuration-file-rakan
+ (mixed-text-file "homeserver.yaml"
+ "# Configuration file for Synapse.\n"
+ "#\n"
+ "# This is a YAML file: see [1] for a quick introduction. Note in particular\n"
+ "# that *indentation is important*: all the elements of a list or dictionary\n"
+ "# should have the same indentation."
+ "#\n"
+ "# [1] https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html\n"
+ "# For more information on how to configura Synapse, including a complete accounting of\n"
+ "# each option, go to docs/usage/configuratoin/config_documentation.md or\n"
+ "# https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html\n"
+ "server_name: \"marekpasnikowski.pl\"\n"
+ "pid_file: /home/matrix/data/homeserver.pid\n"
+ "listeners:\n"
+ " - port: 8008\n"
+ " tls: false\n"
+ " type: http\n"
+ " x_forwarded: true\n"
+ " bind_addresses: ['::1', '127.0.0.1']\n"
+ " resources:\n"
+ " - names: [client]\n"
+ " compress: false\n"
+ "database:\n"
+ " name: sqlite3\n"
+ " args:\n"
+ " database: /home/matrix/data/homeserver.db\n"
+ "log_config: \"/home/matrix/keys/marekpasnikowski.pl.log.config\"\n"
+ "media_store_path: /home/matrix/data/media_store\n"
+ "registration_shared_secret: /home/matrix/keys/registration_shared_secret\n"
+ "report_stats: false\n"
+ "macaroon_secret_key: /home/matrix/keys/macaroon_secret_key\n"
+ "form_secret: /home/matrix/keys/form_secret\n"
+ "signing_key_path: \"/home/matrix/keys/marekpasnikowski.pl.signing.key\"\n"
+ "trusted_key_servers:\n"
+ " - server_name: \"matrix.org\"\n"
+ "\n"
+ "\n"
+ "# vim:ft=yaml\n"))
+
+(define matrix-configuration-rakan
+ (matrix-configuration
+ (package gnu:packages:matrix:synapse)
+ (file homeserver-configuration-file-rakan)))
(define matrix-service-rakan
- (service sovereign:services:matrix:matrix-service-type))
+ (service matrix-service-type
+ matrix-configuration-rakan))