summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-03-16 17:17:20 +0100
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-03-16 17:17:20 +0100
commitef1540da4ea534d39b2a13902b809ef1a58d68bf (patch)
treee365feecf41d476f2521aa50a6e924203746c1d9
parentfix missing semicolon (diff)
downloadRory-Open-Architecture-ef1540da4ea534d39b2a13902b809ef1a58d68bf.tar.xz
move settings
-rwxr-xr-xhost/Rory-synapse/configuration.nix67
1 files changed, 34 insertions, 33 deletions
diff --git a/host/Rory-synapse/configuration.nix b/host/Rory-synapse/configuration.nix
index 632d834..9af744b 100755
--- a/host/Rory-synapse/configuration.nix
+++ b/host/Rory-synapse/configuration.nix
@@ -100,17 +100,40 @@
       
       # Alicia - types: https://github.com/NixOS/nixpkgs/blob/release-22.11/nixos/modules/services/matrix/synapse.nix#L410
       listeners = [
-          { port = 8008;
-            bind_addresses = [ "192.168.1.5" ];
-            type = "http";
-            tls = false;
-            x_forwarded = true;
-            resources = [ {
-              names = [ "client" "federation" ];
-              compress = true;
-            } ];
-          }
-        ];
+        { 
+          port = 8008;
+          bind_addresses = [ "192.168.1.5" ];
+          type = "http";
+          tls = false;
+          x_forwarded = true;
+          resources = [ {
+            names = [ "client" "federation" ];
+            compress = true;
+          } ];
+        }
+      ];
+      dynamic_thumbnails = true;
+
+      presence = {
+        enable = true;
+        update_interval = 60;
+      };
+      url_preview_enabled = true;
+      
+
+      
+      database = {
+        name = "psycopg2";
+        args = {
+          user = "postgres";
+          passwordFile = "/run/secrets/matrix-synapse-password";
+          database = "matrix-synapse-rory-gay";
+          host = "192.168.1.3";
+        };
+      };
+      app_service_config_files = [
+        #"/etc/matrix-synapse/appservice-registration.yaml"
+      ];
     };
 
     plugins = with pkgs.matrix-synapse-plugins; [
@@ -118,29 +141,7 @@
       matrix-synapse-pam
     ];
 
-    dynamic_thumbnails = true;
-
-
-    presence = {
-      enable = true;
-      update_interval = 60;
-    };
-    url_preview_enabled = true;
-    
-
     
-    database = {
-      name = "psycopg2";
-      args = {
-        user = "postgres";
-        passwordFile = "/run/secrets/matrix-synapse-password";
-        database = "matrix-synapse-rory-gay";
-        host = "192.168.1.3";
-      };
-    };
-    app_service_config_files = [
-      #"/etc/matrix-synapse/appservice-registration.yaml"
-    ];
   };
 
   services.mjolnir = {