style(nixfmt): formatting using nixfmt cli tools
This commit is contained in:
parent
b804520f4c
commit
fbe803b928
46 changed files with 2133 additions and 1700 deletions
|
|
@ -1,42 +1,47 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.service.selfhost.mail;
|
||||
cfg = config.service.selfhost.mail;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg {
|
||||
services.rspamd.enable = true;
|
||||
mailserver = {
|
||||
enable = true;
|
||||
stateVersion = 3;
|
||||
fqdn = "mail.enium.eu";
|
||||
domains = [
|
||||
"enium.eu"
|
||||
];
|
||||
loginAccounts = {
|
||||
"no-reply@enium.eu" = {
|
||||
hashedPasswordFile = "/root/mail-passwd.txt";
|
||||
};
|
||||
};
|
||||
certificateScheme = "acme-nginx";
|
||||
};
|
||||
config = lib.mkIf cfg {
|
||||
services.rspamd.enable = true;
|
||||
mailserver = {
|
||||
enable = true;
|
||||
stateVersion = 3;
|
||||
fqdn = "mail.enium.eu";
|
||||
domains = [
|
||||
"enium.eu"
|
||||
];
|
||||
loginAccounts = {
|
||||
"no-reply@enium.eu" = {
|
||||
hashedPasswordFile = "/root/mail-passwd.txt";
|
||||
};
|
||||
};
|
||||
certificateScheme = "acme-nginx";
|
||||
};
|
||||
|
||||
services = {
|
||||
roundcube = {
|
||||
enable = true;
|
||||
hostName = "mail.enium.eu";
|
||||
extraConfig = ''
|
||||
$config['smtp_host'] = "tls://mail.enium.eu";
|
||||
$config['smtp_user'] = "%u";
|
||||
$config['smtp_pass'] = "%p";
|
||||
'';
|
||||
};
|
||||
nginx = {
|
||||
virtualHosts."mail.enium.eu" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
services = {
|
||||
roundcube = {
|
||||
enable = true;
|
||||
hostName = "mail.enium.eu";
|
||||
extraConfig = ''
|
||||
$config['smtp_host'] = "tls://mail.enium.eu";
|
||||
$config['smtp_user'] = "%u";
|
||||
$config['smtp_pass'] = "%p";
|
||||
'';
|
||||
};
|
||||
nginx = {
|
||||
virtualHosts."mail.enium.eu" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue