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,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, pkgs, config, ... }:
{
i18n = {
defaultLocale = "en_US.utf8";
@ -17,16 +17,18 @@
useUserPackages = true;
};
users.defaultUserShell = pkgs.zsh;
networking = {
firewall = {
enable = lib.mkDefault true;
allowedTCPPorts = [ 22 ];
allowedTCPPorts = [ ];
};
};
services = {
fail2ban = {
enable = lib.mkDefault true;
enable = lib.mkIf config.networking.firewall.enable (lib.mkDefault true);
recommendedDefaults = true;
};