summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ymir.nix17
1 files changed, 10 insertions, 7 deletions
diff --git a/ymir.nix b/ymir.nix
index c663c4ce..a00873f4 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -108,14 +108,17 @@ in {
108 custom_alias_secret_file="/etc/prosody/alias_secret" 108 custom_alias_secret_file="/etc/prosody/alias_secret"
109 ''; 109 '';
110 110
111 virtualHosts."xmpp.li" = { 111 let
112 enabled = true; 112 makeHost = name: {
113 domain = "xmpp.li"; 113 enabled = true;
114 ssl = { 114 domain = name;
115 key = "certs/xmpp.li.key"; 115 ssl = {
116 cert = "certs/xmpp.li.crt"; 116 key = "certs/${name}.key";
117 cert = "certs/${name}.crt";
118 };
117 }; 119 };
118 }; 120 in virtualHosts = builtins.listToAttrs (name: { inherit name; value = makeHost name; })
121 ["xmpp.li" "yggdrasil.li" "praseodym.org" "141.li"];
119 }; 122 };
120 security.pam.services."xmpp".text = '' 123 security.pam.services."xmpp".text = ''
121 auth requisite pam_succeed_if.so user ingroup xmpp 124 auth requisite pam_succeed_if.so user ingroup xmpp