From 5f607efee8fe5076f72968b07abdb1dcdd674af9 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 28 Nov 2024 21:46:13 +0000 Subject: [PATCH] nixos: services: fail2ban: persist data --- modules/nixos/services/fail2ban/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/nixos/services/fail2ban/default.nix b/modules/nixos/services/fail2ban/default.nix index be5f7da..8dcc80d 100644 --- a/modules/nixos/services/fail2ban/default.nix +++ b/modules/nixos/services/fail2ban/default.nix @@ -33,5 +33,9 @@ in bantime = "10m"; }; }; + + my.system.persist.directories = [ + "/var/lib/fail2ban" + ]; }; }