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. | ||
=== | === Web clients === | ||
==== 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"> | |||
{ | |||
assertions = [{ | |||
assertion = config.services.nginx.enable; | |||
}]; | |||
}; | # 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> | ||
== Servers == | == Servers == | ||