feat: add CrowdSec security module

- Wraps native NixOS CrowdSec service
- Configures SSH and nginx log acquisition
- Installs linux/nginx/sshd hub collections
- Supports IP whitelisting and ban duration config
- Optional nginx bouncer integration (requires manual API key setup)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ashisgreat22 2026-03-18 13:44:36 +01:00
parent db4f0f8f61
commit 211693ef3b
3 changed files with 145 additions and 0 deletions

View file

@ -113,4 +113,10 @@
domain = "vault.ashisgreat.xyz";
signupAllowed = false;
};
# === CrowdSec ===
myModules.crowdsec = {
enable = true;
enableNginxBouncer = false; # Set to true after configuring bouncer API key
};
}