blob: f8816d44fe865c64601812a83af8c4b79e0265f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ config, ... }:
let
poorObfuscation = y: x: "${x}@${y}";
in
{
sops.secrets.hetzner-dns-key = {
owner = "acme";
};
security.acme = {
acceptTerms = true;
defaults.email = poorObfuscation "sefidel.com" "postmaster";
certs = {
"sefidel.com" = {
domain = "sefidel.com";
extraDomainNames = [
"bouncer.sefidel.com"
"git.sefidel.com"
"matrix.sefidel.com"
"social.sefidel.com"
];
dnsProvider = "hetzner";
dnsPropagationCheck = true;
credentialsFile = config.sops.secrets.hetzner-dns-key.path;
};
};
};
environment.persistence."/persist".directories = [
"/var/lib/acme"
];
}
|