Skip to content

Commit

Permalink
roundcube: functions for generating webmail webservices
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasp committed Feb 4, 2019
1 parent 91ce64c commit dea7a06
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/services/email/nixcloud-email.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ let
}
'';

# generate attrSet for a single webmail webservice
mkWebMailWebService = fqdn: {
enable = true;
proxyOptions = {
domain = "${fqdn}";
port = 8993;
};
};
# unique set of primary FQDN and additional domains in nixcloud.email, prefixed with `mail.` depending on `autoMailDomain`
rcWebMailFQDNs = map (fqdn: (lib.optionalString (cfg.webmail.autoMailDomain) "mail.") + fqdn) (lib.unique([ cfg.fqdn ] ++ cfg.domains));

in {
imports = [
(import ./virtual-mail-users.nix ({virtualMailDir = cfg.virtualMailDir;} // args))
Expand Down

0 comments on commit dea7a06

Please sign in to comment.