From 58cb351d99a6ad63e3c66bcdc5ff199a95e5be2c Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Wed, 25 Oct 2023 09:20:15 -0300 Subject: [PATCH] nixos/ssh: remove fail2ban --- nixos/server/ssh.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/nixos/server/ssh.nix b/nixos/server/ssh.nix index dd5df0e1..f0ae1ab8 100644 --- a/nixos/server/ssh.nix +++ b/nixos/server/ssh.nix @@ -17,15 +17,12 @@ in config = lib.mkIf cfg.enable { # Enable OpenSSH - services = { - fail2ban.enable = true; - openssh = { - enable = true; - ports = [ 22 2222 ]; - settings = { - PasswordAuthentication = false; - KbdInteractiveAuthentication = false; - }; + services.openssh = { + enable = true; + ports = [ 22 2222 ]; + settings = { + PasswordAuthentication = false; + KbdInteractiveAuthentication = false; }; };