diff options
author | Azat Bahawi <azat@bahawi.net> | 2023-07-13 07:39:07 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2023-07-13 07:39:07 +0300 |
commit | 138ff2ae32facaf4f2c072115b1b0f64f05f615a (patch) | |
tree | 1853385d7b07b92c3eb84439170fc719e56cf2c4 /modules/nixos/openssh.nix | |
parent | 2023-07-09 (diff) |
2023-07-13
Diffstat (limited to '')
-rw-r--r-- | modules/nixos/openssh.nix | 12 |
1 files changed, 7 insertions, 5 deletions
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; + }; + }; }; }; } |