diff options
| -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 | } |
