ctucx.git: nixfiles

ctucx' nixfiles

commit 9f9e1a7d43e32aae98634f9a9d05cc9753bb79f3
parent 073d6555f4e19be18702dcdf502ccfd9c84223c3
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sat, 14 May 2022 09:28:39 +0200

machines/osterei/matrix-synapse: provide cinny as default client!
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/machines/osterei/matrix-synapse.nix b/machines/osterei/matrix-synapse.nix
@@ -76,7 +76,17 @@ in {
           forceSSL   = true;
           locations  = {
             "/_matrix".proxyPass = "http://127.0.0.1:8008";
-            "/".root             = pkgs.buildEnv {
+            "/".root             = pkgs.callPackage ../../pkgs/cinny.nix {
+              conf = {
+                defaultHomeserver = 0;
+                homeserverList    = [
+                  "matrix.ctu.cx"
+                  "matrix.flauschekatze.space"
+                ];
+                allowCustomHomesevrers = false;
+              };
+            };
+            "/schildi/".alias = "${pkgs.buildEnv {
               name  = "schildichat-web-env";
               paths = [
                 pkgsUnstable.schildichat-web

@@ -105,7 +115,7 @@ in {
                   };
                 })))
               ];
-            };
+            }}/";
           };
         };