VEGAS/matrix: switch to Cinny web client
This commit is contained in:
parent
0ad10d8c59
commit
50f689c2ec
1 changed files with 11 additions and 34 deletions
|
@ -1,39 +1,16 @@
|
||||||
{ lib, pkgs, tools, ... }:
|
{ inputs, lib, pkgs, tools, ... }:
|
||||||
let
|
let
|
||||||
inherit (tools.nginx) domain vhosts;
|
inherit (tools.nginx) domain vhosts;
|
||||||
|
inherit (inputs.self.packages.${pkgs.system}) cinny;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.nginx.virtualHosts."chat.${domain}" = vhosts.static (pkgs.element-web.override {
|
services.nginx.virtualHosts."chat.${domain}" = lib.recursiveUpdate
|
||||||
conf = {
|
(vhosts.static cinny.webroot)
|
||||||
default_server_config."m.homeserver" = {
|
{
|
||||||
base_url = "https://matrix.${domain}:443";
|
locations."=/config.json".alias = pkgs.writeText "cinny-config.json" (builtins.toJSON {
|
||||||
server_name = tools.meta.domain;
|
defaultHomeserver = 0;
|
||||||
};
|
homeserverList = [ "${domain}" ];
|
||||||
disable_3pid_login = true;
|
allowCustomHomeservers = false;
|
||||||
disable_custom_urls = true;
|
});
|
||||||
|
};
|
||||||
brand = "Private Void Chat";
|
|
||||||
|
|
||||||
integrations_ui_url = "https://dimension.t2bot.io/riot";
|
|
||||||
integrations_rest_url = "https://dimension.t2bot.io/api/v1/scalar";
|
|
||||||
integrations_widgets_urls = [ "https://dimension.t2bot.io/widgets" ];
|
|
||||||
integrations_jitsi_widget_url = "https://dimension.t2bot.io/widgets/jitsi";
|
|
||||||
|
|
||||||
enableLabs = true;
|
|
||||||
showLabsSettings = true;
|
|
||||||
features = with lib; flip genAttrs (_: "labs") [
|
|
||||||
"feature_custom_status"
|
|
||||||
"feature_custom_tags"
|
|
||||||
"feature_many_integration_managers"
|
|
||||||
"feature_new_spinner"
|
|
||||||
"feature_pinning"
|
|
||||||
"feature_state_counters"
|
|
||||||
];
|
|
||||||
default_federate = true;
|
|
||||||
default_theme = "dark";
|
|
||||||
roomDirectory.servers = [ domain "matrix.org" ];
|
|
||||||
piwik = false;
|
|
||||||
jitsi.preferredDomain = "meet.${domain}";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue