-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommon.nix
57 lines (57 loc) · 1.18 KB
/
common.nix
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
let
data = builtins.fromJSON (builtins.readFile ./data.json);
in
{
TTL = 30;
SOA = {
nameServer = "iad0.nichi.link.";
adminEmail = "[email protected]";
serial = 0;
refresh = 14400;
retry = 3600;
expire = 604800;
minimum = 300;
};
NS = builtins.map (name: "${name}.") data.nameservers.value;
DKIM = [
{
selector = "20230826";
k = "rsa";
p = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC/zQOxo7Gt2FLp6XRXtagzbbD5iV67FAONTTespTjkobZHAkupDo+05af5N5+E4BOVqlBKiQVQHTooX1iwKeaIF5XjwI2HFbBVRMiYrNlsTEYQM9TRuRVXOzkmFFdCQiL1mC8LwDgKxuH7Af1myDtXIO/1o6QjG4+Yt9LkEHL5MwIDAQAB";
s = [ "email" ];
}
];
DMARC = [
{
p = "reject";
sp = "reject";
pct = 100;
adkim = "strict";
aspf = "strict";
fo = [ "1" ];
ri = 604800;
}
];
CAA = [
{
issuerCritical = false;
tag = "issue";
value = "letsencrypt.org";
}
];
SRV = [
{
service = "imaps";
proto = "tcp";
port = 993;
target = "iad0.nichi.link.";
}
{
service = "submission";
proto = "tcp";
port = 465;
target = "iad0.nichi.link.";
}
];
nodes = data.nodes.value;
}