diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-09-25 19:43:06 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-09-25 19:43:06 +0200 |
commit | 25cff9f94f11cfd6c8a6e1cade5a0170123b4604 (patch) | |
tree | 7e7fd6dad6ef96218574d797158937a635fbf3c9 /ymir.nix | |
parent | 0d511a3b2a71cce6eefcb52eeb46aea61d7e17d8 (diff) | |
download | nixos-25cff9f94f11cfd6c8a6e1cade5a0170123b4604.tar nixos-25cff9f94f11cfd6c8a6e1cade5a0170123b4604.tar.gz nixos-25cff9f94f11cfd6c8a6e1cade5a0170123b4604.tar.bz2 nixos-25cff9f94f11cfd6c8a6e1cade5a0170123b4604.tar.xz nixos-25cff9f94f11cfd6c8a6e1cade5a0170123b4604.zip |
Switched auth to internal & storage to sql
Diffstat (limited to 'ymir.nix')
-rw-r--r-- | ymir.nix | 21 |
1 files changed, 7 insertions, 14 deletions
@@ -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 | } |