From 7ee710a405999eaf38f7f7aea34dc6ebcb8481ba Mon Sep 17 00:00:00 2001 From: Victor Mignot Date: Fri, 26 Jul 2024 21:48:03 +0200 Subject: [PATCH] Fix format error --- configurations/camelot/matrix.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/configurations/camelot/matrix.nix b/configurations/camelot/matrix.nix index d913f92..9c253bc 100644 --- a/configurations/camelot/matrix.nix +++ b/configurations/camelot/matrix.nix @@ -1,7 +1,8 @@ { config, ... }: let conduitConfig = config.services.matrix-conduit.settings; -in { +in +{ services.matrix-conduit = { enable = true; @@ -36,7 +37,7 @@ in { ssl = true; } { - addr= "[::]"; + addr = "[::]"; port = 8448; ssl = true; } @@ -46,12 +47,12 @@ in { ssl = true; } { - addr= "[::]"; + addr = "[::]"; port = 443; ssl = true; } ]; - + locations."/" = { recommendedProxySettings = true; proxyPass = "http://${conduitConfig.global.address}:${builtins.toString conduitConfig.global.port}"; @@ -61,7 +62,10 @@ in { }; }; - networking.firewall.allowedTCPPorts = [ 443 8448 ]; + networking.firewall.allowedTCPPorts = [ + 443 + 8448 + ]; services.matrix-appservice-discord = { enable = true; @@ -87,7 +91,7 @@ in { }; }; environmentFile = config.sops.secrets.discord_bridge_token.path; - + serviceDependencies = [ "conduit.service" ]; }; }