formatting: new formatting'

This commit is contained in:
gwg313 2024-06-01 15:32:26 -04:00
parent 7efcab98a9
commit ef1b9f6c91
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
15 changed files with 358 additions and 152 deletions

View file

@ -0,0 +1,21 @@
{
config,
lib,
...
}: {
options = {
ssh_guard.enable = lib.mkEnableOption "enable ssh guard";
};
config = lib.mkIf config.ssh_guard.enable {
services.sshguard = {
enable = true;
services = [
"sshd"
];
blocktime = 120;
detection_time = 1800;
blacklist_threshold = 120;
blacklist_file = "/var/lib/sshguard/blacklist.db";
};
};
}