Add fail2ban to sshd module

This commit is contained in:
JuliusFreudenberger 2026-03-11 22:53:54 +01:00
parent b3ec023cad
commit b441618575

View file

@ -3,11 +3,17 @@
lib,
...
}: {
services.openssh = {
services = {
openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
fail2ban = {
enable = true;
bantime = "1h";
};
};
}