diff options
-rw-r--r-- | ymir.nix | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -5,6 +5,14 @@ let | |||
5 | luaPosix = pkgs.callPackage ./custom/luaPosix.nix {}; | 5 | luaPosix = pkgs.callPackage ./custom/luaPosix.nix {}; |
6 | luaSha2 = pkgs.callPackage ./custom/luaSha2.nix {}; | 6 | luaSha2 = pkgs.callPackage ./custom/luaSha2.nix {}; |
7 | prosodyAuth = pkgs.callPackage ./custom/prosody-auth.nix {}; | 7 | prosodyAuth = pkgs.callPackage ./custom/prosody-auth.nix {}; |
8 | prosodyVirtHost = name: { | ||
9 | enabled = true; | ||
10 | domain = name; | ||
11 | ssl = { | ||
12 | key = "certs/${name}.key"; | ||
13 | cert = "certs/${name}.crt"; | ||
14 | }; | ||
15 | }; | ||
8 | in { | 16 | in { |
9 | imports = | 17 | imports = |
10 | [ | 18 | [ |
@@ -108,16 +116,7 @@ in { | |||
108 | custom_alias_secret_file="/etc/prosody/alias_secret" | 116 | custom_alias_secret_file="/etc/prosody/alias_secret" |
109 | ''; | 117 | ''; |
110 | 118 | ||
111 | let | 119 | virtualHosts = builtins.listToAttrs (name: { inherit name; value = prosodyVirtHost name; }) |
112 | makeHost = name: { | ||
113 | enabled = true; | ||
114 | domain = name; | ||
115 | ssl = { | ||
116 | key = "certs/${name}.key"; | ||
117 | cert = "certs/${name}.crt"; | ||
118 | }; | ||
119 | }; | ||
120 | in virtualHosts = builtins.listToAttrs (name: { inherit name; value = makeHost name; }) | ||
121 | ["xmpp.li" "yggdrasil.li" "praseodym.org" "141.li"]; | 120 | ["xmpp.li" "yggdrasil.li" "praseodym.org" "141.li"]; |
122 | }; | 121 | }; |
123 | security.pam.services."xmpp".text = '' | 122 | security.pam.services."xmpp".text = '' |