From 222c7e35d7e9507f6eb8d67bb7af3ef9e623d0f3 Mon Sep 17 00:00:00 2001 From: tzlil Date: Fri, 17 Feb 2023 17:46:47 +0200 Subject: added alejandra as formatter and formatted everything --- hosts/vps/matrix.nix | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) (limited to 'hosts/vps/matrix.nix') diff --git a/hosts/vps/matrix.nix b/hosts/vps/matrix.nix index cb13326..2d606b0 100644 --- a/hosts/vps/matrix.nix +++ b/hosts/vps/matrix.nix @@ -1,23 +1,28 @@ -{ pkgs, config, ... }: - { + pkgs, + config, + ... +}: { config = { services.matrix-synapse = { - enable = true; - settings.server_name = config.networking.domain; - settings.listeners = [ - { port = 8008; - bind_addresses = [ "::1" ]; - type = "http"; - tls = false; - x_forwarded = true; - resources = [ { - names = [ "client" "federation" ]; + enable = true; + settings.server_name = config.networking.domain; + settings.listeners = [ + { + port = 8008; + bind_addresses = ["::1"]; + type = "http"; + tls = false; + x_forwarded = true; + resources = [ + { + names = ["client" "federation"]; compress = true; - } ]; - } - ]; + } + ]; + } + ]; }; networking.firewall.allowedTCPPorts = [80 443]; }; -} \ No newline at end of file +} -- cgit 1.4.1