summary refs log tree commit diff stats
path: root/modules/matrix/element.nix
blob: 20290be6885f98c51802921c9ea0e6edbf9198f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ pkgs, libs, config, ... }:
let
  clientConfig."m.homeserver".base_url = "https://matrix.krinitsin.com/";
in
{

  services.nginx.virtualHosts."element.krinitsin.com" = {
    forceSSL = true;
    useACMEHost = "krinitsin.com";
    root = pkgs.element-web.override {
      conf = {
        default_server_config = clientConfig;
      };
    };
  };

  security.acme.certs."krinitsin.com".extraDomainNames = [ "element.krinitsin.com" ];

}