server and other shit
This commit is contained in:
parent
270e1a0be4
commit
804371bf96
65 changed files with 1428 additions and 619 deletions
47
home/apps/internet/messaging.nix
Normal file
47
home/apps/internet/messaging.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
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
|
||||
{ };
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue