47 lines
1.4 KiB
Nix
47 lines
1.4 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
osConfig,
|
|
...
|
|
}:
|
|
|
|
{
|
|
programs = {
|
|
element-desktop =
|
|
if osConfig.apps.messaging.element.enable then
|
|
{
|
|
enable = true;
|
|
settings = {
|
|
default_server_config = {
|
|
"m.homeserver" = {
|
|
base_url =
|
|
if osConfig.apps.messaging.element.selfhosted then
|
|
"https://${osConfig.server.synapse.subdomain}.${osConfig.networking.domain}"
|
|
else
|
|
"https://matrix-client.matrix.org";
|
|
server_name =
|
|
if osConfig.apps.messaging.element.selfhosted then
|
|
"${osConfig.server.synapse.subdomain}.${osConfig.networking.domain}"
|
|
else
|
|
"matrix.org";
|
|
};
|
|
"m.identity_server" = {
|
|
base_url = "https://vector.im";
|
|
};
|
|
};
|
|
default_theme = "dark";
|
|
disable_custom_urls = false;
|
|
disable_guests = false;
|
|
disable_login_language_selector = false;
|
|
disable_3pid_login = false;
|
|
force_verification = false;
|
|
brand = "Element";
|
|
integrations_ui_url = "https://scalar.vector.im/";
|
|
integrations_rest_url = "https://scalar.vector.im/api";
|
|
};
|
|
}
|
|
else
|
|
{ };
|
|
};
|
|
}
|