Ajout element-web

periodique
pigeonmoelleux 2025-03-01 18:05:30 +01:00
parent aa52524fa3
commit c3a12c1f81
No known key found for this signature in database
GPG Key ID: B3BE02E379E6E8E2
2 changed files with 30 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ config, ... }:
{ ... }:
{
imports = [
@ -6,6 +6,7 @@
./networking.nix
../../../modules
../../../modules/services/element.nix
];
networking.hostName = "periodique";

View File

@ -0,0 +1,28 @@
{ pkgs, ... }:
{
imports = [
./nginx.nix
];
services.nginx.virtualHosts = {
"element.crans.org" = {
root = pkgs.element-web.override {
conf = {
default_server_config = {
"m.homeserver" = {
base_url = "https://crans.org";
server_name = "crans.org";
};
};
default_theme = "light";
features = {
feature_video_rooms = true;
feature_group_calls = true;
feature_element_call_video_rooms = true;
};
};
};
};
};
}