WIP MADDY
This commit is contained in:
parent
5885a850bf
commit
5a4a317459
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