diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-09-25 17:15:01 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-09-25 17:15:01 +0200 |
commit | 1083ff30c841076ce5e376c5c7c494fa8a9e18fd (patch) | |
tree | 0ce038ce00368b650baad789d2e7f1a17baff902 | |
parent | f5cc89051c6c976538c13acc4b3ee41d1f762111 (diff) | |
download | nixos-1083ff30c841076ce5e376c5c7c494fa8a9e18fd.tar nixos-1083ff30c841076ce5e376c5c7c494fa8a9e18fd.tar.gz nixos-1083ff30c841076ce5e376c5c7c494fa8a9e18fd.tar.bz2 nixos-1083ff30c841076ce5e376c5c7c494fa8a9e18fd.tar.xz nixos-1083ff30c841076ce5e376c5c7c494fa8a9e18fd.zip |
trying prosody with almost no custom config
-rw-r--r-- | ymir.nix | 26 |
1 files changed, 12 insertions, 14 deletions
@@ -80,12 +80,12 @@ in { | |||
80 | "gkleen@xmpp.li" | 80 | "gkleen@xmpp.li" |
81 | ]; | 81 | ]; |
82 | allowRegistration = false; | 82 | allowRegistration = false; |
83 | extraConfig = '' | 83 | # extraConfig = '' |
84 | plugin_paths = { "${prosodyModules}" } | 84 | # plugin_paths = { "${prosodyModules}" } |
85 | authentication = "pam" | 85 | # authentication = "pam" |
86 | ''; | 86 | # ''; |
87 | extraModules = [ "auth_pam" | 87 | # extraModules = [ "auth_pam" |
88 | ]; | 88 | # ]; |
89 | 89 | ||
90 | virtualHosts.default = { | 90 | virtualHosts.default = { |
91 | enabled = true; | 91 | enabled = true; |
@@ -96,12 +96,10 @@ in { | |||
96 | }; | 96 | }; |
97 | }; | 97 | }; |
98 | }; | 98 | }; |
99 | environment.etc."pam.d/xmpp" = { | 99 | security.pam.services."xmpp".text = '' |
100 | text = '' | 100 | auth [success=1 default=ignore] pam_unix.so obscure sha512 nodelay |
101 | auth [success=1 default=ignore] pam_unix.so obscure sha512 nodelay | 101 | auth required pam_succeed_if.so user ingroup xmpp |
102 | auth required pam_succeed_if.so user ingroup xmpp | 102 | auth requisite pam_deny.so |
103 | auth requisite pam_deny.so | 103 | auth required pam_permit.so |
104 | auth required pam_permit.so | 104 | ''; |
105 | ''; | ||
106 | }; | ||
107 | } | 105 | } |