Matrix: Difference between revisions
No edit summary |
mNo edit summary |
||
| Line 33: | Line 33: | ||
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"> | 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"> | ||
{ | { | ||
services.nginx.enable = true; | |||
# See https://nixos.org/manual/nixos/stable/index.html#module-services-matrix-element-web | # See https://nixos.org/manual/nixos/stable/index.html#module-services-matrix-element-web | ||
services.nginx.virtualHosts."localhost" = { | services.nginx.virtualHosts."localhost" = { | ||
listen = [{ | listen = [{ | ||
addr = "::1"; | addr = "::1"; | ||
port = yourPort; | |||
}]; | }]; | ||
root = pkgs.element-web.override { | root = pkgs.element-web.override { | ||
| Line 46: | Line 45: | ||
conf = { | conf = { | ||
default_theme = "dark"; | default_theme = "dark"; | ||
}; | }; | ||
}; | }; | ||