summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-09-25 19:43:06 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-09-25 19:43:06 +0200
commit25cff9f94f11cfd6c8a6e1cade5a0170123b4604 (patch)
tree7e7fd6dad6ef96218574d797158937a635fbf3c9
parent0d511a3b2a71cce6eefcb52eeb46aea61d7e17d8 (diff)
downloadnixos-25cff9f94f11cfd6c8a6e1cade5a0170123b4604.tar
nixos-25cff9f94f11cfd6c8a6e1cade5a0170123b4604.tar.gz
nixos-25cff9f94f11cfd6c8a6e1cade5a0170123b4604.tar.bz2
nixos-25cff9f94f11cfd6c8a6e1cade5a0170123b4604.tar.xz
nixos-25cff9f94f11cfd6c8a6e1cade5a0170123b4604.zip
Switched auth to internal & storage to sql
-rw-r--r--ymir.nix21
1 files 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 {
81 ]; 81 ];
82 allowRegistration = false; 82 allowRegistration = false;
83 extraConfig = '' 83 extraConfig = ''
84 plugin_paths = { "${prosodyModules}" } 84 plugin_paths = { }
85 authentication = "pam" 85 log = {
86 error = "syslog";
87 info = "syslog";
88 }
89 storage = "sql"
86 ''; 90 '';
87 extraModules = [ "auth_pam" 91 extraModules = [ "storage_sql"
88 ]; 92 ];
89 93
90 virtualHosts.default = { 94 virtualHosts.default = {
@@ -96,15 +100,4 @@ in {
96 }; 100 };
97 }; 101 };
98 }; 102 };
99 security.pam.services."xmpp".text = ''
100 auth required pam_warn.so
101 auth required pam_succeed_if.so user ingroup xmpp
102 auth [success=1 default=ignore] pam_unix.so obscure sha512 nodelay
103 auth requisite pam_deny.so
104 auth required pam_permit.so
105 '';
106 users.groups."xmpp" = {
107 members = [ "gkleen"
108 ];
109 };
110} 103}