Matrix: Difference between revisions

services.matrix-conduit.* options are available now.
element-web localhost source code
Line 28: Line 28:
A [https://search.nixos.org/packages?query=purple-matrix Pidgin / libpurple plugin] is also available.
A [https://search.nixos.org/packages?query=purple-matrix Pidgin / libpurple plugin] is also available.


==== Element ====
=== Web clients ===


The [https://github.com/vector-im/element-web/blob/develop/config.sample.json config.json] file used by Element can be configured as such:
==== element-web ====
 
There is also a web version of [https://search.nixos.org/packages?query=element-web Element] which can be served using a web server. See [https://nixos.org/nixos/manual/index.html#module-services-matrix-element-web the NixOS manual entry].<syntaxhighlight lang="nixos">
<syntaxhighlight lang="nix">
{
nixpkgs.config.element-web.conf = {
  assertions = [{
  show_labs_settings = true;
    assertion = config.services.nginx.enable;
  default_theme = "dark";
  }];
};
  # See https://nixos.org/manual/nixos/stable/index.html#module-services-matrix-element-web
  services.nginx.virtualHosts."localhost" = {
    listen = [{
      addr = (if config.networking.enableIPv6 then "::1" else "127.0.0.1");
      # port = yourPort;
    }];
    root = pkgs.element-web.override {
      # See https://github.com/element-hq/element-web/blob/develop/config.sample.json
      conf = {
        show_labs_settings = true;
        default_theme = "dark";
      };
    };
  };
}
</syntaxhighlight>
</syntaxhighlight>
=== Web clients ===
There is also a web version of [https://search.nixos.org/packages?query=element-web Element] which can be served using a web server. See [https://nixos.org/nixos/manual/index.html#module-services-matrix-element-web the NixOS manual entry].


== Servers ==
== Servers ==