hosts/plover/services/crowdsec: init prototype

This commit is contained in:
Gabriel Arazas 2024-10-07 13:03:09 +08:00
parent a9cb58fd68
commit 0c57bcadd6
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 23 additions and 0 deletions

View File

@ -30,6 +30,7 @@
./services/fail2ban.nix
./services/gitea.nix
./services/grafana.nix
./services/crowdsec.nix
./services/monitoring.nix
./services/vouch-proxy.nix
./services/vaultwarden.nix

View File

@ -0,0 +1,22 @@
{ config, lib, ... }:
let
hostCfg = config.hosts.plover;
cfg = hostCfg.services.crowdsec;
in
{
options.hosts.plover.services.crowdsec.enable =
lib.mkEnableOption "Crowdsec service";
config = lib.mkIf cfg.enable {
services.crowdsec = {
enable = true;
settings = {
common = {
daemonize = false;
log_media = "stdout";
};
};
};
};
}