From 0ac6fef30805d5de293662d2ed5d56c9ce440dbd Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 28 Nov 2024 21:46:25 +0000 Subject: [PATCH] nixos: services: flood: persist data --- modules/nixos/services/flood/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/nixos/services/flood/default.nix b/modules/nixos/services/flood/default.nix index f3fe90b..b4fecef 100644 --- a/modules/nixos/services/flood/default.nix +++ b/modules/nixos/services/flood/default.nix @@ -28,6 +28,10 @@ in }; }; + my.system.persist.directories = [ + "/var/lib/${config.systemd.services.flood.serviceConfig.StateDirectory}" + ]; + # NOTE: unfortunately flood does not log connection failures for fail2ban }; }