summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-03-19 10:06:11 +0100
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-03-19 10:06:11 +0100
commit8f819565f60c07be32d01c1dd80d3fbca6d2e5bf (patch)
tree0e4977dcdfffac282a2cd352663e752f63242e7d
parentAdd matrix domain (diff)
downloadRory-Open-Architecture-8f819565f60c07be32d01c1dd80d3fbca6d2e5bf.tar.xz
Add pam provider
-rwxr-xr-xhost/Rory-synapse/configuration.nix14
1 files changed, 12 insertions, 2 deletions
diff --git a/host/Rory-synapse/configuration.nix b/host/Rory-synapse/configuration.nix
index 895f58b..85eb834 100755
--- a/host/Rory-synapse/configuration.nix
+++ b/host/Rory-synapse/configuration.nix
@@ -142,8 +142,18 @@
       #matrix-synapse-mjolnir-antispam
       matrix-synapse-pam
     ];
-
-    
+    extraConfigFiles = [
+        (pkgs.writeTextFile {
+          name = "matrix-synapse-extra-config.yml";
+          text = ''
+            password_providers:
+              - module: "pam_auth_provider.PAMAuthProvider"
+                config:
+                  create_users: true
+                  skip_user_check: false
+          '';
+        })
+      ];
   };
 
   # Alicia - doesnt work yet... until in nixpkgs...