summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}