From 138ff2ae32facaf4f2c072115b1b0f64f05f615a Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Thu, 13 Jul 2023 07:39:07 +0300 Subject: 2023-07-13 --- modules/nixos/openssh.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'modules/nixos/openssh.nix') diff --git a/modules/nixos/openssh.nix b/modules/nixos/openssh.nix index 22e4b51..4324e45 100644 --- a/modules/nixos/openssh.nix +++ b/modules/nixos/openssh.nix @@ -44,11 +44,13 @@ in { }; }; - fail2ban.jails.sshd = '' - enabled = true - mode = aggressive - port = ${toString cfg.server.port} - ''; + fail2ban.jails.sshd = { + enabled = true; + settings = { + mode = "aggressive"; + inherit (cfg.server) port; + }; + }; }; }; } -- cgit 1.4.1