Modify Element config for modern WebRTC
This commit is contained in:
parent
a83ec768eb
commit
66b0945abd
1 changed files with 27 additions and 3 deletions
|
|
@ -37,15 +37,39 @@
|
|||
lutris
|
||||
steam
|
||||
easyeffects
|
||||
openssl
|
||||
jq
|
||||
|
||||
# Wrap Element so it knows where gnome-libsecret it
|
||||
(symlinkJoin {
|
||||
# Wrap Element so it knows where gnome-libsecret is
|
||||
# Additionally, override the config to disable legacy call protocol
|
||||
(let
|
||||
elementConfig = pkgs.writeText "element-config.json" (builtins.toJSON {
|
||||
default_server_config = {
|
||||
"m.homeserver" = {
|
||||
base_url = "https://starling.mynest.love";
|
||||
server_name = "starling.mynest.love";
|
||||
};
|
||||
};
|
||||
features = {
|
||||
"feature_group_calls" = true;
|
||||
"feature_video_rooms" = false;
|
||||
"feature_element_call_video_rooms" = false;
|
||||
};
|
||||
element_call = {
|
||||
url = null;
|
||||
use_exclusively = true;
|
||||
};
|
||||
jitsi = {
|
||||
preferred_domain = null;
|
||||
};
|
||||
});
|
||||
in symlinkJoin {
|
||||
name = "element-desktop";
|
||||
paths = [ element-desktop ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/element-desktop \
|
||||
--add-flags "--password-store=gnome-libsecret"
|
||||
--add-flags "--password-store=gnome-libsecret --config-path ${elementConfig}"
|
||||
'';
|
||||
})
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue