mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 08:39:08 +03:00
19 lines
342 B
Nix
19 lines
342 B
Nix
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "fail2ban";
|
|
|
|
nodes.machine = _: {
|
|
services.fail2ban = {
|
|
enable = true;
|
|
bantime-increment.enable = true;
|
|
};
|
|
|
|
services.openssh.enable = true;
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("multi-user.target")
|
|
|
|
machine.wait_for_unit("fail2ban")
|
|
'';
|
|
})
|