summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-09-25 17:15:01 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-09-25 17:15:01 +0200
commit1083ff30c841076ce5e376c5c7c494fa8a9e18fd (patch)
tree0ce038ce00368b650baad789d2e7f1a17baff902
parentf5cc89051c6c976538c13acc4b3ee41d1f762111 (diff)
downloadnixos-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.nix26
1 files changed, 12 insertions, 14 deletions
diff --git a/ymir.nix b/ymir.nix
index 62ad773f..73789294 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -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}