Feature email server (#14)
* formatting * update * add mailserver * flake update
This commit is contained in:
@ -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";
|
||||
|
@ -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
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user