WIP MADDY
This commit is contained in:
parent
15b0781bee
commit
3f5c5c8d1b
1 changed files with 35 additions and 0 deletions
35
systems/vesuvio/mail.nix
Normal file
35
systems/vesuvio/mail.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{ config, ... }:
|
||||||
|
let
|
||||||
|
certName = "mail.c.uku3lig.net";
|
||||||
|
certLocation = config.security.acme.certs.${certName}.directory;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
security.acme.certs.${certName} = {
|
||||||
|
group = config.services.maddy.group;
|
||||||
|
extraLegoRenewFlags = [ "--reuse-key" ]; # soopyc said its more secure
|
||||||
|
};
|
||||||
|
|
||||||
|
services.maddy = {
|
||||||
|
enable = true;
|
||||||
|
hostname = "mx1.uku3lig.net";
|
||||||
|
primaryDomain = "uku3lig.net";
|
||||||
|
localDomains = [
|
||||||
|
"$(primary_domain)"
|
||||||
|
"uku.moe"
|
||||||
|
];
|
||||||
|
|
||||||
|
tls = {
|
||||||
|
loader = "file";
|
||||||
|
certificates = [
|
||||||
|
{
|
||||||
|
certPath = "${certLocation}/fullchain.pem";
|
||||||
|
keyPath = "${certLocation}/key.pem";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
config = ''
|
||||||
|
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue