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 }; }