mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
hosts/plover/services/crowdsec: init prototype
This commit is contained in:
parent
a9cb58fd68
commit
0c57bcadd6
@ -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
|
||||
|
22
configs/nixos/plover/modules/services/crowdsec.nix
Normal file
22
configs/nixos/plover/modules/services/crowdsec.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user