blob: 7fa0b93bd8b6929448e19344e497952a5c53b8a4 [file] [log] [blame]
Skyler Grey22428b02023-11-19 13:20:56 +00001{ config, lib, pkgs, ... }: let
2 mailDomains = [
3 "clicks.codes"
4 "coded.codes"
5 "hopescaramels.com"
6 "trans.gg"
Skyler Grey9dfe4972023-12-22 23:33:17 +00007 "starrysky.fyi"
8 "a.starrysky.fyi"
9 "thecoded.prof"
Skyler Grey22428b02023-11-19 13:20:56 +000010 ];
11 mailACMEHosts = [
12 "mail.clicks.codes"
13 "mail.coded.codes"
14 "mail.trans.gg"
15 "mail.hopescaramels.com"
16 ] ++ (
17 builtins.concatMap
18 (domain: [ domain "mail.${domain}" "imap.${domain}" "smtp.${domain}" ])
19 mailDomains
20 );
21in {
22 security.acme = {
23 certs = lib.pipe mailACMEHosts [
24 (map (name: { inherit name; value = {}; }))
25 builtins.listToAttrs
26 ];
27 defaults.postRun = "cp -r $(pwd) /opt/mailcow-dockerized/data/assets/ssl/";
28 };
29}