mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
23 lines
407 B
Nix
23 lines
407 B
Nix
{ 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";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|