depot/hosts/VEGAS/services/matrix/web-client.nix

17 lines
435 B
Nix
Raw Normal View History

2023-02-24 16:16:15 +02:00
{ depot, lib, pkgs, tools, ... }:
let
inherit (tools.nginx) domain vhosts;
2023-02-24 16:16:15 +02:00
inherit (depot.packages) cinny;
in
{
services.nginx.virtualHosts."chat.${domain}" = lib.recursiveUpdate
(vhosts.static cinny.webroot)
{
locations."=/config.json".alias = pkgs.writeText "cinny-config.json" (builtins.toJSON {
defaultHomeserver = 0;
homeserverList = [ "${domain}" ];
allowCustomHomeservers = false;
});
};
}