1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Add mail server

This commit is contained in:
RGBCube 2024-01-11 14:56:30 +03:00
parent fbb53380ca
commit 42712f996e
No known key found for this signature in database
6 changed files with 37 additions and 9 deletions

View file

@ -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";
};

View file

@ -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
View 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;
};
};
}