summary refs log tree commit diff
diff options
context:
space:
mode:
-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...