ctucx.git: nixfiles

ctucx' nixfiles

commit 67a65a4179ee3a0bcfaa50f77c630d1586c96f02
parent 1d24edcde53cac379d1f3f83f7cf97fc9062e28b
Author: Leah (ctucx) <git@ctu.cx>
Date: Sun, 19 Mar 2023 19:29:20 +0100

machines/trabbi/matrix-synapse: remove schildichat
1 file changed, 2 insertions(+), 30 deletions(-)
M
machines/trabbi/matrix-synapse.nix
|
32
++------------------------------
diff --git a/machines/trabbi/matrix-synapse.nix b/machines/trabbi/matrix-synapse.nix
@@ -83,6 +83,8 @@
           kTLS       = true;
           locations  = {
             "/_matrix".proxyPass = "http://127.0.0.1:8008";
+#            "/_synapse".proxyPass = "http://127.0.0.1:8008";
+#            "/admin/".alias = "${pkgs.synapse-admin}/";
             "/".root             = pkgs.cinny.override {
               conf = {
                 defaultHomeserver = 0;

@@ -93,36 +95,6 @@
                 allowCustomHomesevrers = false;
               };
             };
-            "/schildi/".alias = "${pkgs.buildEnv {
-              name  = "schildichat-web-env";
-              paths = [
-                pkgs.unstable.schildichat-web
-                (lib.hiPrio (pkgs.writeTextDir "config.json" (builtins.toJSON {
-                  brand               = "matrix.ctu.cx";
-                  disable_guests      = true;
-                  disable_3pid_login  = true;
-                  disable_custom_urls = true;
-                  showLabsSettings    = true;
-                  defaultCountryCode  = "DE";
-                  piwik               = false;
-                  features            = {
-                    "feature_custom_status" = true;
-                    "feature_dnd"           = true;
-                    "feature_latex_maths"   = false;
-                  };
-                  settingDefaults = {
-                    "UIFeature.deactivate"   = false;
-                    "UIFeature.registration" = false;
-                  };
-                  default_server_config = {
-                    "m.homeserver" = {
-                      base_url    = "https://matrix.ctu.cx";
-                      server_name = "ctu.cx";
-                    };
-                  };
-                })))
-              ];
-            }}/";
           };
         };