repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vuls: init at 0.27.0
[NixPkgs.git]
/
nixos
/
tests
/
fail2ban.nix
blob
c3708575b702bc2720ebd2b124e9a3fc4fcf79a9
1
import ./make-test-python.nix ({ pkgs, ... }: {
2
name = "fail2ban";
3
4
nodes.machine = _: {
5
services.fail2ban = {
6
enable = true;
7
bantime-increment.enable = true;
8
};
9
10
services.openssh.enable = true;
11
};
12
13
testScript = ''
14
machine.wait_for_unit("multi-user.target")
15
16
machine.wait_for_unit("fail2ban")
17
'';
18
})