nix: update input julm-nix
[sourcephile-nix.git] / hosts / losurdo / fail2ban.nix
index cf1078873e2fe40c303c427b7f78b2223b937cc4..5f237ed9a8fa3819a433087eb44afc98083d12c9 100644 (file)
       "losurdo.sourcephile.fr"
     ];
     jails = {
-      DEFAULT = ''
-    '';
-      sshd = ''
-        enabled = true
-        bantime = 5m
-        findtime = 1d
-        maxretry = 1
-        mode = aggressive
-      '';
-      postgresql = ''
-        enabled = true
-        bantime = 1m
-        filter = postgresql
-        findtime = 1d
-        port = 5432
-      '';
+      sshd.settings = {
+        enabled = true;
+        bantime = "5m";
+        findtime = "1d";
+        maxretry = "1";
+        mode = "aggressive";
+      };
+      postgresql.settings = {
+        enabled = true;
+        bantime = "1m";
+        filter = "postgresql";
+        findtime = "1d";
+        port = 5432;
+      };
     };
   };
   environment.etc."fail2ban/action.d/nftables-common.local".text = ''