From bb03185103072af86d4e196aac06beec4869dac6 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 30 Sep 2015 23:00:36 +0200 Subject: more virtual hosts for ymir --- ymir.nix | 17 ++++++++++------- 1 file 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 { custom_alias_secret_file="/etc/prosody/alias_secret" ''; - virtualHosts."xmpp.li" = { - enabled = true; - domain = "xmpp.li"; - ssl = { - key = "certs/xmpp.li.key"; - cert = "certs/xmpp.li.crt"; + let + makeHost = name: { + enabled = true; + domain = name; + ssl = { + key = "certs/${name}.key"; + cert = "certs/${name}.crt"; + }; }; - }; + in virtualHosts = builtins.listToAttrs (name: { inherit name; value = makeHost name; }) + ["xmpp.li" "yggdrasil.li" "praseodym.org" "141.li"]; }; security.pam.services."xmpp".text = '' auth requisite pam_succeed_if.so user ingroup xmpp -- cgit v1.2.3