treewide: format using nixfmt

Signed-off-by: Bloxx12 <charlie@charlieroot.dev>
Change-Id: I6a6a69641c36f9763e104087a559c148d0449f00
This commit is contained in:
Bloxx12 2025-07-20 01:23:48 +02:00
commit e641dfa114
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw
113 changed files with 1545 additions and 1019 deletions

View file

@ -3,14 +3,16 @@
lib,
pkgs,
...
}: let
}:
let
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;
domain = "charlieroot.dev";
cfg = config.modules.system.services.stalwart;
in {
in
{
options.modules.system.services.stalwart.enable = mkEnableOption "stalwart";
config = mkIf cfg.enable {
# create the stallwart user
@ -20,7 +22,7 @@ in {
group = "stalwart";
isSystemUser = true;
};
users.groups.stalwart = {};
users.groups.stalwart = { };
services.stalwart-mail = {
enable = true;
@ -55,7 +57,7 @@ in {
# This is the standard port for SMTP, and is used by mail servers to send email to each other.
smtp = {
protocol = "smtp";
bind = ["[::]:25"];
bind = [ "[::]:25" ];
tls.implicit = true;
};
# SMTP submissions with implicit TLS are received on port 465 by default.
@ -63,17 +65,17 @@ in {
# and is used by mail clients to send email to mail servers.
submissions = {
bind = ["[::]:465"];
bind = [ "[::]:465" ];
protocol = "smtp";
tls.implicit = true;
};
imaps = {
bind = ["[::]:993"];
bind = [ "[::]:993" ];
protocol = "imap";
tls.implicit = true;
};
management = {
bind = ["127.0.0.1:8080"];
bind = [ "127.0.0.1:8080" ];
protocol = "http";
tls.implicit = true;
};