Initial commit
This commit is contained in:
commit
9661927410
27 changed files with 1091 additions and 0 deletions
28
hosts/kazuki/mail.nix
Normal file
28
hosts/kazuki/mail.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{config, ...}: {
|
||||
age.secrets = {
|
||||
leet-nrab-lol.file = ../../secrets/leet-nrab-lol-pass.age;
|
||||
alert-nrab-lol.file = ../../secrets/alert-nrab-lol-pass.age;
|
||||
};
|
||||
|
||||
users.users.nginx.extraGroups = ["acme"];
|
||||
networking.firewall.allowedTCPPorts = [80 443 8448 2222];
|
||||
|
||||
mailserver = {
|
||||
enable = true;
|
||||
fqdn = "mail.nrab.lol";
|
||||
domains = ["nrab.lol"];
|
||||
|
||||
loginAccounts = {
|
||||
"1337@nrab.lol" = {
|
||||
hashedPasswordFile = config.age.secrets.leet-nrab-lol.path;
|
||||
};
|
||||
"alert@nrab.lol" = {
|
||||
hashedPasswordFile = config.age.secrets.alert-nrab-lol.path;
|
||||
sendOnly = true;
|
||||
sendOnlyRejectMessage = "";
|
||||
};
|
||||
};
|
||||
|
||||
certificateScheme = "acme-nginx";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue