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; }; };