feat: wsl: some things

This commit is contained in:
2026-03-15 10:59:19 +00:00
parent b9730784ba
commit f23720e151
12 changed files with 190 additions and 63 deletions

View File

@@ -0,0 +1,32 @@
{
inputs,
flake,
self,
}:
{
pkgs,
lib,
config,
...
}: let
cfg = config.hectic.services.matrix;
in {
config = lib.mkIf cfg.enable {
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;
};
};
};
};
}