Feature email server (#14)

* formatting

* update

* add mailserver

* flake update
This commit is contained in:
Dennis
2024-01-02 16:30:08 +01:00
committed by GitHub
parent 477b4cf466
commit db67a9d7e5
7 changed files with 113 additions and 33 deletions

View File

@ -1,12 +1,12 @@
{ config, lib, libS, ... }:
let
cfg = config.boot;
cfg = config.boot;
in
{
options = {
boot = {
default = libS.mkOpinionatedOption "enable the boot builder";
options = {
boot = {
default = libS.mkOpinionatedOption "enable the boot builder";
cpuType = lib.mkOption {
type = lib.types.str;
example = "amd";

View File

@ -30,9 +30,10 @@ in
logpath = "/var/log/httpd/error_log*";
backend = "systemd";
findtime = 600;
bantime = 600;
bantime = 600;
maxretry = 5;
};
dovecot = {
settings = {
filter = "dovecot[mode=aggressive]";
@ -41,4 +42,4 @@ in
};
};
};
}
}

View File

@ -3,11 +3,6 @@
{
config = {
services = lib.mkIf config.services.gitea.enable {
fail2ban = {
enable = true;
};
openssh = {
extraConfig = ''
Match User gitea
@ -23,5 +18,9 @@
RSA = 4095;
};
};
networking.firewall = lib.mkIf config.services.openssh.enable {
allowedTCPPorts = config.services.openssh.ports;
};
};
}
}