···48 enableACME = mkOption {
49 type = types.bool;
50 default = false;
51- description = "Whether to ask Let's Encrypt to sign a certificate for this vhost.";
0000000000000052 };
5354 acmeRoot = mkOption {
···48 enableACME = mkOption {
49 type = types.bool;
50 default = false;
51+ description = ''
52+ Whether to ask Let's Encrypt to sign a certificate for this vhost.
53+ Alternately, you can use an existing certificate through <option>useACMEHost</option>.
54+ '';
55+ };
56+57+ useACMEHost = mkOption {
58+ type = types.nullOr types.str;
59+ default = null;
60+ description = ''
61+ A host of an existing Let's Encrypt certificate to use.
62+ This is useful if you have many subdomains and want to avoid hitting the
63+ <link xlink:href="https://letsencrypt.org/docs/rate-limits/">rate limit</link>.
64+ Alternately, you can generate a certificate through <option>enableACME</option>.
65+ '';
66 };
6768 acmeRoot = mkOption {