Files
nixos-config/servers/hetzner/modules/services/fail2ban.nix
T
jory 31de8eccb0
CI / Flake check (aarch64-linux) (push) Failing after 3h12m52s
CI / Flake check (x86_64-linux) (push) Failing after 1h2m1s
feat(hetzner): full migration of docker-mailserver to stalwart
2026-08-15 15:59:27 +02:00

18 lines
394 B
Nix

{...}: {
# Keep fail2ban as OCI container to preserve the web UI
virtualisation.oci-containers.containers.fail2ban = {
image = "crazymax/fail2ban:latest";
autoStart = true;
volumes = [
"/home/admin/fail2ban/data:/data:Z"
];
environment = {
TZ = "Europe/Amsterdam";
};
extraOptions = [
"--network=host"
"--cap-add=NET_ADMIN"
];
};
}