treewide: format using nixfmt
Signed-off-by: Bloxx12 <charlie@charlieroot.dev> Change-Id: I6a6a69641c36f9763e104087a559c148d0449f00
This commit is contained in:
parent
f4464732e3
commit
e641dfa114
113 changed files with 1545 additions and 1019 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue