mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Add mail server
This commit is contained in:
parent
fbb53380ca
commit
42712f996e
6 changed files with 37 additions and 9 deletions
|
@ -12,7 +12,7 @@ serverSystemConfiguration {
|
|||
credentialsFile = config.age.secrets.acme.path;
|
||||
dnsProvider = "cloudflare";
|
||||
dnsResolver = "1.1.1.1";
|
||||
email = "rgbsphere@gmail.com";
|
||||
email = "security@rgbcu.be";
|
||||
group = "nginx";
|
||||
};
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ config, ulib, ... }: with ulib;
|
||||
|
||||
systemConfiguration {
|
||||
serverSystemConfiguration {
|
||||
services.akkoma = let
|
||||
inherit ((pkgs.formats.elixirConf { }).lib) mkRaw mkTuple;
|
||||
|
||||
|
@ -28,8 +28,8 @@ systemConfiguration {
|
|||
name = "RGBCube's Akkoma Server";
|
||||
description = "RGBCube's Akkoma server, facism edition.";
|
||||
|
||||
email = "rgbsphere@gmail.com";
|
||||
notify_email = "rgbsphere@gmail.com";
|
||||
email = "social@rgbcu.be";
|
||||
notify_email = "social@rgbcu.be";
|
||||
|
||||
limit = 100000;
|
||||
remote_limit = 100000;
|
||||
|
|
20
hosts/cube/mail.nix
Normal file
20
hosts/cube/mail.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, ulib, ... }: with ulib;
|
||||
|
||||
serverSystemConfiguration {
|
||||
mailserver = enabled {
|
||||
domains = [ config.networking.domain ];
|
||||
fqdn = "mail.${config.networking.domain}";
|
||||
|
||||
certificateScheme = "acme";
|
||||
|
||||
hierarchySeparator = "/";
|
||||
useFsLayout = true;
|
||||
|
||||
loginAccounts.contact = {
|
||||
name = "contact@${config.networking.domain}";
|
||||
aliases = [ "@${config.networking.domain}" ];
|
||||
|
||||
hashedPasswordFile = config.age.secrets."cube.mail.password.hash".path;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue