From 25cff9f94f11cfd6c8a6e1cade5a0170123b4604 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 25 Sep 2015 19:43:06 +0200 Subject: Switched auth to internal & storage to sql --- ymir.nix | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/ymir.nix b/ymir.nix index 90f7e6b8..89b5e5cb 100644 --- a/ymir.nix +++ b/ymir.nix @@ -81,10 +81,14 @@ in { ]; allowRegistration = false; extraConfig = '' - plugin_paths = { "${prosodyModules}" } - authentication = "pam" + plugin_paths = { } + log = { + error = "syslog"; + info = "syslog"; + } + storage = "sql" ''; - extraModules = [ "auth_pam" + extraModules = [ "storage_sql" ]; virtualHosts.default = { @@ -96,15 +100,4 @@ in { }; }; }; - security.pam.services."xmpp".text = '' - auth required pam_warn.so - auth required pam_succeed_if.so user ingroup xmpp - auth [success=1 default=ignore] pam_unix.so obscure sha512 nodelay - auth requisite pam_deny.so - auth required pam_permit.so - ''; - users.groups."xmpp" = { - members = [ "gkleen" - ]; - }; } -- cgit v1.2.3