feate(nixos) bfs: matrix, element, bla bla bla

This commit is contained in:
2025-12-05 19:36:53 +00:00
parent 5177f9a1f6
commit 9a5bfa3f80
4 changed files with 46 additions and 19 deletions

View File

@@ -0,0 +1,22 @@
{ config, lib, pkgs, ... }: let
cfg = config.currentServer.matrix;
in {
config = {
services.nginx.virtualHosts."element.${cfg.matrixDomain}" = {
enableACME = true;
forceSSL = true;
root = pkgs.element-web.override {
conf = {
default_server_config = {
"m.homeserver".base_url = "https://${cfg.matrixDomain}";
"m.identity_server".base_url = "https://vector.im";
};
default_theme = "dark";
show_labs_settings = true;
};
};
};
};
}