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" ]; }; }